public enum ConnectionMode extends Enum<ConnectionMode>
| Enum Constant and Description |
|---|
bleHID |
bleSPP |
btHID |
btSPP |
buffer |
usbHID |
usbSPP |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionMode |
fromValue(int value) |
int |
getCode() |
String |
toString() |
static ConnectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionMode btHID
public static final ConnectionMode btSPP
public static final ConnectionMode usbHID
public static final ConnectionMode usbSPP
public static final ConnectionMode bleHID
public static final ConnectionMode bleSPP
public static final ConnectionMode buffer
public static ConnectionMode[] values()
for (ConnectionMode c : ConnectionMode.values()) System.out.println(c);
public static ConnectionMode 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 getCode()
public String toString()
toString in class Enum<ConnectionMode>public static ConnectionMode fromValue(int value) throws IllegalArgumentException
IllegalArgumentException