public static enum ConnectionStateListener.State extends Enum<ConnectionStateListener.State>
| Enum Constant and Description |
|---|
CONNECTED
Connection to the server has been made.
|
DISCONNECTED
The connection was closed.
|
SERVER_READY
Authentication, if necessary, has been completed.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionStateListener.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionStateListener.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionStateListener.State CONNECTED
public static final ConnectionStateListener.State SERVER_READY
public static final ConnectionStateListener.State DISCONNECTED
public static ConnectionStateListener.State[] values()
for (ConnectionStateListener.State c : ConnectionStateListener.State.values()) System.out.println(c);
public static ConnectionStateListener.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015. All Rights Reserved.