public enum ConnectType extends Enum<ConnectType> implements IEnumType
| Enum Constant and Description |
|---|
Bluetooth |
BluetoothLe |
UART |
Unknown |
USB |
Wifi |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Get the enum code value
|
static String[] |
names() |
String |
toString()
Return the name of the enum
|
static ConnectType |
valueOf(int code)
Returns the enum constant of this type with the specified code.
|
static ConnectType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectType |
valueOfName(String 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 final ConnectType Wifi
public static final ConnectType USB
public static final ConnectType UART
public static ConnectType[] values()
for (ConnectType c : ConnectType.values()) System.out.println(c);
public static ConnectType 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()
IEnumTypepublic String toString()
IEnumTypetoString in interface IEnumTypetoString in class Enum<ConnectType>public static ConnectType valueOf(int code)
code - The code to checkpublic static ConnectType valueOfName(String name)
public static String[] names()