public enum MachineStatus extends java.lang.Enum<MachineStatus>
Enum Constant and Description |
---|
CONNECTED |
ERROR |
IDLE |
RUNNING |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static MachineStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MachineStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MachineStatus UNKNOWN
public static final MachineStatus CONNECTED
public static final MachineStatus IDLE
public static final MachineStatus RUNNING
public static final MachineStatus ERROR
public static MachineStatus[] values()
for (MachineStatus c : MachineStatus.values()) System.out.println(c);
public static MachineStatus 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