public enum ConnectType extends java.lang.Enum<ConnectType>
| Enum Constant and Description |
|---|
bluetooth |
bluetoothLe |
unknown |
| Modifier and Type | Method and Description |
|---|---|
static ConnectType |
fromName(java.lang.String name)
Returns the connection type from the specified name.
|
int |
getCode()
Returns the integer code of the connection type.
|
java.lang.String |
toString()
Returns the string representation of the connection type.
|
int |
value()
Returns the integer value of the connection type.
|
static ConnectType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectType unknown
public static final ConnectType bluetooth
public static final ConnectType bluetoothLe
public static ConnectType[] values()
for (ConnectType c : ConnectType.values()) System.out.println(c);
public static ConnectType 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 value()
public int getCode()
public java.lang.String toString()
toString in class java.lang.Enum<ConnectType>public static ConnectType fromName(java.lang.String name)
name - The name of the connection type.