public static enum RelayData.State extends java.lang.Enum<RelayData.State>
Modifier and Type | Method and Description |
---|---|
static RelayData.State |
fromValue(java.lang.String str)
Get the State corresponding to the given value.
|
java.lang.String |
getValue() |
static RelayData.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RelayData.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelayData.State OFF
public static final RelayData.State ON
public static final RelayData.State FORWARD
public static final RelayData.State REVERSE
public static RelayData.State[] values()
for (RelayData.State c : RelayData.State.values()) System.out.println(c);
public static RelayData.State 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 java.lang.String getValue()
public static RelayData.State fromValue(java.lang.String str)
str
- the value whose corresponding State should be returned