public enum ChatroomState extends Enum<ChatroomState>
| Enum Constant and Description | 
|---|
CONNECTED
The state means connection to server is established. 
 | 
CONNECTING
The state means  
ChatroomManager is trying to establish a connection or reconnect. | 
DISCONNECTING
The state means  
ChatroomManager is trying to disconnect. | 
IDLE
The default state and the state after disconnection. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ChatroomState | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static ChatroomState[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final ChatroomState IDLE
public static final ChatroomState CONNECTED
public static final ChatroomState CONNECTING
ChatroomManager is trying to establish a connection or reconnect.public static final ChatroomState DISCONNECTING
ChatroomManager is trying to disconnect.public static ChatroomState[] values()
for (ChatroomState c : ChatroomState.values()) System.out.println(c);
public static ChatroomState 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 null