public static enum CapabilityPowerLevels.CommandId extends java.lang.Enum<CapabilityPowerLevels.CommandId> implements Capability.CommandId
CapabilityPowerLevels
.Enum Constant and Description |
---|
FETCH_BATTERY_LEVEL_PCT |
FETCH_BATTERY_VOLTAGE_MV |
Modifier and Type | Method and Description |
---|---|
static CapabilityPowerLevels.CommandId |
getEnum(int index) |
int |
getInt() |
static CapabilityPowerLevels.CommandId |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CapabilityPowerLevels.CommandId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CapabilityPowerLevels.CommandId FETCH_BATTERY_VOLTAGE_MV
public static final CapabilityPowerLevels.CommandId FETCH_BATTERY_LEVEL_PCT
public static CapabilityPowerLevels.CommandId[] values()
for (CapabilityPowerLevels.CommandId c : CapabilityPowerLevels.CommandId.values()) System.out.println(c);
public static CapabilityPowerLevels.CommandId 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 static CapabilityPowerLevels.CommandId getEnum(int index)
public int getInt()
getInt
in interface CommandIdInterface