public enum PowerState extends Enum<PowerState>
| Enum Constant and Description |
|---|
Off |
On |
PoweringOff |
PoweringOn |
Unknown |
| Modifier and Type | Method and Description |
|---|---|
static PowerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PowerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerState On
public static final PowerState Off
public static final PowerState Unknown
public static final PowerState PoweringOn
public static final PowerState PoweringOff
public static PowerState[] values()
for (PowerState c : PowerState.values()) System.out.println(c);
public static PowerState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.