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