public static enum Service.STATE extends Enum<Service.STATE>
| Enum Constant and Description | 
|---|
INITED
Initialized but not started or stopped 
 | 
NOTINITED
Constructed but not initialized 
 | 
STARTED
started and not stopped 
 | 
STOPPED
stopped. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getValue()
Get the integer value of a state 
 | 
String | 
toString()
Get the name of a state 
 | 
static Service.STATE | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static Service.STATE[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Service.STATE NOTINITED
public static final Service.STATE INITED
public static final Service.STATE STARTED
public static final Service.STATE STOPPED
public static Service.STATE[] values()
for (Service.STATE c : Service.STATE.values()) System.out.println(c);
public static Service.STATE valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
public String toString()
toString in class Enum<Service.STATE>Copyright © 2018 Apache Software Foundation. All Rights Reserved.