Modifier and Type | Method and Description |
---|---|
static PowerMode |
getEnum(byte[] data) |
byte[] |
getID() |
PowerMode |
getRefEnum(byte[] data) |
java.lang.String |
toString() |
static PowerMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerMode REF
public static final PowerMode ACTIVE
public static final PowerMode HIBERNATE
public static final PowerMode SHUTDOWN
public static PowerMode[] values()
for (PowerMode c : PowerMode.values()) System.out.println(c);
public static PowerMode 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 static PowerMode getEnum(byte[] data)
public PowerMode getRefEnum(byte[] data)
getRefEnum
in interface BaseEnum
public java.lang.String toString()
toString
in class java.lang.Enum<PowerMode>