public static enum Connection.Status extends Enum<Connection.Status>
All connection states are defined here.
Enum Constant and Description |
---|
CLOSED |
CONNECTED |
CONNECTING |
DISCONNECTED |
NO_CONNECTION |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Connection.Status |
getStatus(String value)
Finds matching status value
|
String |
getValue() |
static Connection.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connection.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connection.Status NO_CONNECTION
public static final Connection.Status CLOSED
public static final Connection.Status DISCONNECTED
public static final Connection.Status CONNECTING
public static final Connection.Status CONNECTED
public static final Connection.Status UNKNOWN
public static Connection.Status[] values()
for (Connection.Status c : Connection.Status.values()) System.out.println(c);
public static Connection.Status 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 nullpublic String getValue()
public static Connection.Status getStatus(String value)
value
- to match with connection status