public enum SubCommandType extends java.lang.Enum<SubCommandType> implements IEnumType
Enum Constant and Description |
---|
AccessResult |
BatteryState |
ChangeDutyCycle |
Disconnect |
KeyEvent |
OperationModeChanged |
ReadTag |
Reconnect |
RecoverSetting |
Temperature |
Unknown |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Get the enum code value
|
java.lang.String |
toString()
Return the name of the enum
|
static SubCommandType |
valueOf(int code)
Returns the enum constant of this type with the specified code.
|
static SubCommandType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubCommandType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubCommandType Unknown
public static final SubCommandType BatteryState
public static final SubCommandType KeyEvent
public static final SubCommandType OperationModeChanged
public static final SubCommandType ReadTag
public static final SubCommandType AccessResult
public static final SubCommandType Disconnect
public static final SubCommandType Temperature
public static final SubCommandType Reconnect
public static final SubCommandType ChangeDutyCycle
public static final SubCommandType RecoverSetting
public static SubCommandType[] values()
for (SubCommandType c : SubCommandType.values()) System.out.println(c);
public static SubCommandType 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 getCode()
IEnumType
public java.lang.String toString()
IEnumType
toString
in interface IEnumType
toString
in class java.lang.Enum<SubCommandType>
public static SubCommandType valueOf(int code)
code
- The code to check