public enum CradleResults extends java.lang.Enum<CradleResults>
Enum Constant and Description |
---|
ALREADY_DISABLED
Already disabled.
|
ALREADY_ENABLED
Already enabled.
|
ALREADY_IN_USE
Already in use
|
ALREADY_UNLOCKED
Already unlocked.
|
FAILURE
Failure
|
FEATURE_NOT_SUPPORTED
Feature not supported.
|
INVALID_OBJECT
Invalid Object
|
INVALID_VALUE
Invalid value
|
NOT_ENABLED
Not enabled
|
SUCCESS
Success.
|
UNDEFINED
Error code not defined.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns the description for the error.
|
int |
getValue()
This method provides integer value assigned to the enum.
|
static CradleResults |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CradleResults[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CradleResults SUCCESS
public static final CradleResults FAILURE
public static final CradleResults ALREADY_ENABLED
public static final CradleResults ALREADY_UNLOCKED
public static final CradleResults ALREADY_DISABLED
public static final CradleResults ALREADY_IN_USE
public static final CradleResults FEATURE_NOT_SUPPORTED
public static final CradleResults INVALID_VALUE
public static final CradleResults NOT_ENABLED
public static final CradleResults INVALID_OBJECT
public static final CradleResults UNDEFINED
public static CradleResults[] values()
for (CradleResults c : CradleResults.values()) System.out.println(c);
public static CradleResults 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 getValue()
public java.lang.String getDescription()