public static enum BleService.Command extends java.lang.Enum<BleService.Command>
Enum Constant and Description |
---|
REGISTER_CLIENT |
SET_SCAN_FILTER |
SET_SCAN_TYPE |
START_SCAN |
STOP_SCAN |
UNKNOWN |
UNREGISTER_CLIENT |
Modifier and Type | Method and Description |
---|---|
static BleService.Command |
fromOrdinal(int n) |
static BleService.Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleService.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleService.Command START_SCAN
public static final BleService.Command STOP_SCAN
public static final BleService.Command SET_SCAN_FILTER
public static final BleService.Command SET_SCAN_TYPE
public static final BleService.Command REGISTER_CLIENT
public static final BleService.Command UNREGISTER_CLIENT
public static final BleService.Command UNKNOWN
public static BleService.Command[] values()
for (BleService.Command c : BleService.Command.values()) System.out.println(c);
public static BleService.Command 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 BleService.Command fromOrdinal(int n)