public enum ConnectionStatus extends java.lang.Enum<ConnectionStatus>
| Enum Constant and Description | 
|---|
| CONNECTED | 
| CONNECTING | 
| DISCONNECTED连接状态 Connection status | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getValue() | 
| static ConnectionStatus | valueOf(int value) | 
| static ConnectionStatus | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static ConnectionStatus[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final ConnectionStatus DISCONNECTED
 CONNECTED:已连接
 DISCONNECTED:已断开
 CONNECTING:连接中
public static final ConnectionStatus CONNECTED
public static final ConnectionStatus CONNECTING
public static ConnectionStatus[] values()
for (ConnectionStatus c : ConnectionStatus.values()) System.out.println(c);
public static ConnectionStatus 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 ConnectionStatus valueOf(int value)