public static enum Switch.State extends java.lang.Enum<Switch.State>
Modifier and Type | Method and Description |
---|---|
static Switch.State |
fromBoolean(boolean b) |
static Switch.State[] |
fromBoolean(boolean[] b) |
static Switch.State |
fromString(java.lang.String s) |
static Switch.State[] |
fromString(java.lang.String[] s) |
boolean |
getState() |
static Switch.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Switch.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Switch.State Closed
public static final Switch.State Open
public static Switch.State[] values()
for (Switch.State c : Switch.State.values()) System.out.println(c);
public static Switch.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 boolean getState()
public static Switch.State fromBoolean(boolean b)
public static Switch.State[] fromBoolean(boolean[] b)
public static Switch.State fromString(java.lang.String s)
public static Switch.State[] fromString(java.lang.String[] s)