public enum InsertionState extends java.lang.Enum<InsertionState>
| Enum Constant and Description |
|---|
DEVICE_INSERTION_NOT_SUPPORTED
Device insertion into the Cradle are not supported.
|
EXTRACTED
Device has been extracted from the Cradle.
|
INSERTED_CORRECTLY
Device is correctly inserted into the Cradle.
|
INSERTED_WRONGLY
Device has been wrongly inserted into the Cradle.
|
INSERTION_UNKNOWN
Unknown Device state related to Cradle.
|
| Modifier and Type | Method and Description |
|---|---|
static InsertionState |
fromInt(int n)
Retrieves the corresponding InsertionState value, from a valid integer.
|
int |
toInt()
Converts the InsertionState enum to its integer representing value.
|
java.lang.String |
toString() |
static InsertionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InsertionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InsertionState INSERTION_UNKNOWN
public static final InsertionState DEVICE_INSERTION_NOT_SUPPORTED
public static final InsertionState INSERTED_CORRECTLY
public static final InsertionState INSERTED_WRONGLY
public static final InsertionState EXTRACTED
public static InsertionState[] values()
for (InsertionState c : InsertionState.values()) System.out.println(c);
public static InsertionState 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 InsertionState fromInt(int n)
n - intpublic java.lang.String toString()
toString in class java.lang.Enum<InsertionState>