public enum PowerState extends Enum<PowerState>
| 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 UNKNOWN
public static final PowerState ON
public static final PowerState OFF
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 © 2012-2013 Pi4J. All Rights Reserved.