public enum PeripheralType extends java.lang.Enum<PeripheralType>
Enum Constant and Description |
---|
CLASSIC
Classic - BR/EDR peripheral
|
DUAL
Dual Mode - BR/EDR/LE
|
LE
Bluetooth Low Energy peripheral
|
UNKNOWN
Unknown peripheral type, peripheral is not cached
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static @NotNull PeripheralType |
fromValue(int value) |
static PeripheralType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PeripheralType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeripheralType UNKNOWN
public static final PeripheralType CLASSIC
public static final PeripheralType LE
public static final PeripheralType DUAL
public static PeripheralType[] values()
for (PeripheralType c : PeripheralType.values()) System.out.println(c);
public static PeripheralType 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 null@NotNull public static @NotNull PeripheralType fromValue(int value)