public static enum Application.State extends java.lang.Enum<Application.State>
Enum Constant and Description |
---|
INSTALLED
An application in the
INSTALLED state has been successfully
installed and is not running. |
STARTED
An application in the
STARTED state has been started and is running. |
UNINSTALLED
An application in the
UNINSTALLED state has been uninstalled. |
Modifier and Type | Method and Description |
---|---|
static Application.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Application.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Application.State INSTALLED
INSTALLED
state has been successfully
installed and is not running.public static final Application.State STARTED
STARTED
state has been started and is running.public static final Application.State UNINSTALLED
UNINSTALLED
state has been uninstalled. All
application methods except Application.getState()
throw an
IllegalStateException
public static Application.State[] values()
for (Application.State c : Application.State.values()) System.out.println(c);
public static Application.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null