public enum PowerCommand extends java.lang.Enum<PowerCommand>
ChassisControl
command.Enum Constant and Description |
---|
HardReset
Hard reset.
|
PowerDown
Force system into soft off (S4/S45) state.
|
PowerUp |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static PowerCommand |
parseInt(int value) |
static PowerCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerCommand PowerDown
public static final PowerCommand PowerUp
public static final PowerCommand HardReset
public static PowerCommand[] values()
for (PowerCommand c : PowerCommand.values()) System.out.println(c);
public static PowerCommand 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 getCode()
public static PowerCommand parseInt(int value)