public enum PowerSource extends java.lang.Enum<PowerSource>
Enum Constant and Description |
---|
BATTERY |
DC_SOURCE |
EMERGENCY_CONST_POWER |
EMERGENCY_TRANSFER_SWITCH |
MAINS_3_PHASE |
MAINS_SINGLE_PHASE |
MAINS_UNKNOWN_PHASE |
NOT_AVAILABLE |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static PowerSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerSource UNKNOWN
public static final PowerSource MAINS_SINGLE_PHASE
public static final PowerSource MAINS_3_PHASE
public static final PowerSource MAINS_UNKNOWN_PHASE
public static final PowerSource BATTERY
public static final PowerSource DC_SOURCE
public static final PowerSource EMERGENCY_CONST_POWER
public static final PowerSource EMERGENCY_TRANSFER_SWITCH
public static final PowerSource NOT_AVAILABLE
public static PowerSource[] values()
for (PowerSource c : PowerSource.values()) System.out.println(c);
public static PowerSource 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 null