public enum ConnectType extends java.lang.Enum<ConnectType> implements IEnumType
Enum Constant and Description |
---|
Bluetooth |
BluetoothLe |
UART |
Unknown |
USB |
Wifi |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
toString() |
static ConnectType |
valueOf(int code) |
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 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(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 java.lang.String toString()
toString
in interface IEnumType
toString
in class java.lang.Enum<ConnectType>
public static ConnectType valueOf(int code)