public static enum ChatClient.ConnectionState extends java.lang.Enum<ChatClient.ConnectionState>
Enum Constant and Description |
---|
CONNECTED |
CONNECTING |
DENIED |
DISCONNECTED |
FATAL_ERROR |
Modifier and Type | Method and Description |
---|---|
static ChatClient.ConnectionState |
fromInt(int value) |
int |
getValue() |
static ChatClient.ConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChatClient.ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatClient.ConnectionState CONNECTING
public static final ChatClient.ConnectionState CONNECTED
public static final ChatClient.ConnectionState DISCONNECTED
public static final ChatClient.ConnectionState DENIED
public static final ChatClient.ConnectionState FATAL_ERROR
public static ChatClient.ConnectionState[] values()
for (ChatClient.ConnectionState c : ChatClient.ConnectionState.values()) System.out.println(c);
public static ChatClient.ConnectionState 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 int getValue()
public static ChatClient.ConnectionState fromInt(int value)