public enum ServiceState extends java.lang.Enum<ServiceState>
Enum Constant and Description |
---|
STARTED |
STARTING |
STOPPED |
STOPPING |
Modifier and Type | Method and Description |
---|---|
static ServiceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServiceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceState STARTING
public static final ServiceState STARTED
public static final ServiceState STOPPING
public static final ServiceState STOPPED
public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState 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