public enum StackChargeState extends java.lang.Enum<StackChargeState> implements OptionsEnum
Enum Constant and Description |
---|
CHARGING |
DISCHARGING |
STANDBY |
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 StackChargeState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StackChargeState[] |
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 StackChargeState UNDEFINED
public static final StackChargeState STANDBY
public static final StackChargeState CHARGING
public static final StackChargeState DISCHARGING
public static StackChargeState[] values()
for (StackChargeState c : StackChargeState.values()) System.out.println(c);
public static StackChargeState 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