public static enum AdsCommand.Cmd extends Enum<AdsCommand.Cmd>
| Enum Constant and Description |
|---|
ADD_NOTIFY |
CONTROL |
DEL_NOTIFY |
DEVICE_INFO |
NOTIFY |
READ |
READ_WRITE |
STATE |
WRITE |
| Modifier and Type | Field and Description |
|---|---|
private int |
code |
| Modifier and Type | Method and Description |
|---|---|
int |
getIdx() |
static AdsCommand.Cmd |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdsCommand.Cmd[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdsCommand.Cmd DEVICE_INFO
public static final AdsCommand.Cmd READ
public static final AdsCommand.Cmd WRITE
public static final AdsCommand.Cmd STATE
public static final AdsCommand.Cmd CONTROL
public static final AdsCommand.Cmd ADD_NOTIFY
public static final AdsCommand.Cmd DEL_NOTIFY
public static final AdsCommand.Cmd NOTIFY
public static final AdsCommand.Cmd READ_WRITE
public static AdsCommand.Cmd[] values()
for (AdsCommand.Cmd c : AdsCommand.Cmd.values()) System.out.println(c);
public static AdsCommand.Cmd valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getIdx()