public static enum StateAware.State extends java.lang.Enum<StateAware.State>
Enum Constant and Description |
---|
CanWork
Indicates that some work can be performed / energy can be consumed,
but that the current state is being idle.
|
IsWorking
Indicates that some work is currently being performed / some energy
is currently being consumed.
|
None |
Modifier and Type | Method and Description |
---|---|
static StateAware.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StateAware.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateAware.State None
public static final StateAware.State CanWork
public static final StateAware.State IsWorking
public static StateAware.State[] values()
for (StateAware.State c : StateAware.State.values()) System.out.println(c);
public static StateAware.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