|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Connection.ConnectionState> asynctcp.Connection.ConnectionState
public static enum Connection.ConnectionState
An enumeration over all possible connection states.
Enum Constant Summary | |
---|---|
CONNECTED
The local host is connected to the remote host. |
|
CONNECTING
The local host is connecting to the remote host. |
|
DISCONNECTED
The local host is disconnected from the remote host. |
|
DISCONNECTING
The local host is disconnecting from the remote host. |
Method Summary | |
---|---|
static Connection.ConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Connection.ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Connection.ConnectionState CONNECTING
public static final Connection.ConnectionState CONNECTED
public static final Connection.ConnectionState DISCONNECTING
public static final Connection.ConnectionState DISCONNECTED
Method Detail |
---|
public static final Connection.ConnectionState[] values()
for(Connection.ConnectionState c : Connection.ConnectionState.values()) System.out.println(c);
public static Connection.ConnectionState 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 name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |