public enum ConnectionStatus extends java.lang.Enum<ConnectionStatus>
Enum Constant and Description |
---|
CONNECTED |
CONNECTION_FAILED |
DETACHED |
DISCONNECTED |
NOT_CONNECTED |
WAITING_FOR_CONNECTION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStatusText() |
static ConnectionStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionStatus NOT_CONNECTED
public static final ConnectionStatus WAITING_FOR_CONNECTION
public static final ConnectionStatus CONNECTED
public static final ConnectionStatus DISCONNECTED
public static final ConnectionStatus CONNECTION_FAILED
public static final ConnectionStatus DETACHED
public static ConnectionStatus[] values()
for (ConnectionStatus c : ConnectionStatus.values()) System.out.println(c);
public static ConnectionStatus 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getStatusText()