public enum Lifecycle extends Enum<Lifecycle>
Enum Constant and Description |
---|
INITIALIZE |
READY |
SHUTDOWN |
STARTUP |
STOP |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the capitalized String representation of this Lifecycle object.
|
static Lifecycle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Lifecycle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Lifecycle INITIALIZE
public static final Lifecycle STARTUP
public static final Lifecycle READY
public static final Lifecycle SHUTDOWN
public static final Lifecycle STOP
public static Lifecycle[] values()
for (Lifecycle c : Lifecycle.values()) System.out.println(c);
public static Lifecycle 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 String getName()