public static enum TmpEnum.DeviceState extends java.lang.Enum<TmpEnum.DeviceState>
| Enum Constant and Description |
|---|
CONNECTED
已连接
|
CONNECTING
连接中
|
DISCONNECTED
断连
|
UNKNOW
未知类型
|
| Modifier and Type | Method and Description |
|---|---|
static TmpEnum.DeviceState |
createConnectState(ConnectState state) |
int |
getValue() |
static TmpEnum.DeviceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TmpEnum.DeviceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TmpEnum.DeviceState UNKNOW
public static final TmpEnum.DeviceState CONNECTED
public static final TmpEnum.DeviceState DISCONNECTED
public static final TmpEnum.DeviceState CONNECTING
public static TmpEnum.DeviceState[] values()
for (TmpEnum.DeviceState c : TmpEnum.DeviceState.values()) System.out.println(c);
public static TmpEnum.DeviceState 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 getValue()
public static TmpEnum.DeviceState createConnectState(ConnectState state)