public enum AvailableSourcePower extends java.lang.Enum<AvailableSourcePower>
| Enum Constant and Description |
|---|
AVAILABLE_SOURCE_POWER_10_WATT
Cradle are charging the device with 10 watt.
|
AVAILABLE_SOURCE_POWER_15_WATT
Cradle are charging the device with 15 watt.
|
AVAILABLE_SOURCE_POWER_5_WATT
Cradle are charging the device with 5 watt.
|
AVAILABLE_SOURCE_POWER_LEVEL_UNKNOWN
Unknown Cradle charging level.
|
AVAILABLE_SOURCE_POWER_NOT_SUPPORTED
Cradle Type or Device don't support this information.
|
| Modifier and Type | Method and Description |
|---|---|
static AvailableSourcePower |
fromInt(int n)
Retrieves the corresponding AvailableSourcePower value, from a valid integer.
|
int |
toInt()
Converts the AvailableSourcePower enum to its integer representing value.
|
java.lang.String |
toString() |
static AvailableSourcePower |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AvailableSourcePower[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AvailableSourcePower AVAILABLE_SOURCE_POWER_LEVEL_UNKNOWN
public static final AvailableSourcePower AVAILABLE_SOURCE_POWER_NOT_SUPPORTED
public static final AvailableSourcePower AVAILABLE_SOURCE_POWER_5_WATT
public static final AvailableSourcePower AVAILABLE_SOURCE_POWER_10_WATT
public static final AvailableSourcePower AVAILABLE_SOURCE_POWER_15_WATT
public static AvailableSourcePower[] values()
for (AvailableSourcePower c : AvailableSourcePower.values()) System.out.println(c);
public static AvailableSourcePower 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 AvailableSourcePower fromInt(int n)
n - intpublic java.lang.String toString()
toString in class java.lang.Enum<AvailableSourcePower>