public enum State extends java.lang.Enum<State> implements OptionsEnum
Enum Constant and Description |
---|
CHECK |
FORCE_CHARGE |
FULL_CHARGE |
LIMIT |
NORMAL |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets this enums String representation.
|
OptionsEnum |
getUndefined()
Gets the enum that is used for 'UNDEFINED' values.
|
int |
getValue()
Gets this enums int representation.
|
static State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
asCamelCase, isUndefined
public static final State UNDEFINED
public static final State NORMAL
public static final State LIMIT
public static final State FORCE_CHARGE
public static final State FULL_CHARGE
public static final State CHECK
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static 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 nullpublic int getValue()
OptionsEnum
getValue
in interface OptionsEnum
public java.lang.String getName()
OptionsEnum
getName
in interface OptionsEnum
public OptionsEnum getUndefined()
OptionsEnum
getUndefined
in interface OptionsEnum