public static enum ServerConnection.ConnectionStatus extends Enum<ServerConnection.ConnectionStatus>
| Enum Constant and Description |
|---|
CONNECTED |
CONNECTING |
CONNECTION_LOST |
NOT_CONNECTED |
| Modifier and Type | Method and Description |
|---|---|
static ServerConnection.ConnectionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerConnection.ConnectionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerConnection.ConnectionStatus NOT_CONNECTED
public static final ServerConnection.ConnectionStatus CONNECTING
public static final ServerConnection.ConnectionStatus CONNECTED
public static final ServerConnection.ConnectionStatus CONNECTION_LOST
public static ServerConnection.ConnectionStatus[] values()
for (ServerConnection.ConnectionStatus c : ServerConnection.ConnectionStatus.values()) System.out.println(c);
public static ServerConnection.ConnectionStatus 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 © 2018 Space Applications Services. All rights reserved.