public static enum ConnectionState.Values extends java.lang.Enum<ConnectionState.Values>
enum
representing this enumeration class.
Ordinals have no semantic meaning (your code should not rely on them).
Enum Constant and Description |
---|
_UNKNOWN
Special
enum constant which is used to represent constants
that do not exist in this enumeration binding. |
CONNECTED
Represents
ConnectionState.CONNECTED . |
NOT_CONNECTED
Represents
ConnectionState.NOT_CONNECTED . |
RECOVERABLE_ERROR
Represents
ConnectionState.RECOVERABLE_ERROR . |
UNKNOWN
Represents
ConnectionState.UNKNOWN . |
UNRECOVERABLE_ERROR
Represents
ConnectionState.UNRECOVERABLE_ERROR . |
Modifier and Type | Method and Description |
---|---|
static ConnectionState.Values |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionState.Values[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionState.Values CONNECTED
ConnectionState.CONNECTED
.public static final ConnectionState.Values RECOVERABLE_ERROR
ConnectionState.RECOVERABLE_ERROR
.public static final ConnectionState.Values UNRECOVERABLE_ERROR
ConnectionState.UNRECOVERABLE_ERROR
.public static final ConnectionState.Values NOT_CONNECTED
ConnectionState.NOT_CONNECTED
.public static final ConnectionState.Values UNKNOWN
ConnectionState.UNKNOWN
.public static final ConnectionState.Values _UNKNOWN
enum
constant which is used to represent constants
that do not exist in this enumeration binding. For example if a
client receives an enumeration constant that only exists in the
newer version of the API of the server, the client source code will
see it represented by _UNKNOWN
constant, because its version
of the native Java enum
lacks the new constant.public static ConnectionState.Values[] values()
for (ConnectionState.Values c : ConnectionState.Values.values()) System.out.println(c);
public static ConnectionState.Values 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 null