Serializable
, Comparable<ServerConnectionState>
public enum ServerConnectionState extends Enum<ServerConnectionState>
Enum Constant | Description |
---|---|
CONNECTED |
The application is connected to the remote server.
|
CONNECTING |
The application is actively attempting to connect to the remote server.
|
Modifier and Type | Method | Description |
---|---|---|
static ServerConnectionState |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ServerConnectionState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerConnectionState CONNECTING
public static final ServerConnectionState CONNECTED
public static ServerConnectionState[] values()
for (ServerConnectionState c : ServerConnectionState.values()) System.out.println(c);
public static ServerConnectionState 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 null