public enum LeverStatus extends java.lang.Enum<LeverStatus>
| Enum Constant and Description |
|---|
LEVER_STATUS_CLOSE
Cradle lever close.
|
LEVER_STATUS_NOT_SUPPORTED
Cradle lever not supported.
|
LEVER_STATUS_OPEN
Cradle lever open.
|
LEVER_STATUS_UNKNOWN
Unknown Cradle lever status.
|
| Modifier and Type | Method and Description |
|---|---|
static LeverStatus |
fromInt(int n)
Retrieves the corresponding LeverStatus value, from a valid integer.
|
int |
toInt()
Converts the LeverStatus enum to its integer representing value.
|
java.lang.String |
toString() |
static LeverStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LeverStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeverStatus LEVER_STATUS_UNKNOWN
public static final LeverStatus LEVER_STATUS_CLOSE
public static final LeverStatus LEVER_STATUS_OPEN
public static final LeverStatus LEVER_STATUS_NOT_SUPPORTED
public static LeverStatus[] values()
for (LeverStatus c : LeverStatus.values()) System.out.println(c);
public static LeverStatus 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 int toInt()
public static LeverStatus fromInt(int n)
n - intpublic java.lang.String toString()
toString in class java.lang.Enum<LeverStatus>