public static enum CapabilityOnOff.CommandId extends java.lang.Enum<CapabilityOnOff.CommandId> implements Capability.CommandId
CapabilityOnOff.| Enum Constant and Description |
|---|
FETCH_ON_OFF_STATUS
|
OFF
See
CapabilityOnOff.Off. |
ON
See
CapabilityOnOff.On. |
TOGGLE
|
| Modifier and Type | Method and Description |
|---|---|
static CapabilityOnOff.CommandId |
getEnum(int index)
A function to get
Capability.CommandId given its index. |
int |
getInt()
A function to get ordinal value of enum.
|
static CapabilityOnOff.CommandId |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CapabilityOnOff.CommandId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CapabilityOnOff.CommandId ON
CapabilityOnOff.On.public static final CapabilityOnOff.CommandId OFF
CapabilityOnOff.Off.public static final CapabilityOnOff.CommandId TOGGLE
public static final CapabilityOnOff.CommandId FETCH_ON_OFF_STATUS
public static CapabilityOnOff.CommandId[] values()
for (CapabilityOnOff.CommandId c : CapabilityOnOff.CommandId.values()) System.out.println(c);
public static CapabilityOnOff.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 CapabilityOnOff.CommandId getEnum(int index)
Capability.CommandId given its index.index - index of the required Capability.CommandId.Capability.CommandId at the given index.public int getInt()
getInt in interface CommandIdInterface