public static enum ChatRoom.State extends java.lang.Enum<ChatRoom.State>
Enum Constant and Description |
---|
Created
Chat room was created on the server.
|
CreationFailed
Chat room creation failed.
|
CreationPending
One creation request was sent to the server.
|
Deleted
Chat room was deleted on the server.
|
Instantiated
Chat room is now instantiated on local.
|
None
Initial state.
|
Terminated
Chat room exists on server but not in local.
|
TerminationFailed
The chat room termination failed.
|
TerminationPending
Wait for chat room termination.
|
Modifier and Type | Field and Description |
---|---|
protected int |
mValue |
Modifier and Type | Method and Description |
---|---|
static ChatRoom.State |
fromInt(int value) |
int |
toInt() |
static ChatRoom.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChatRoom.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatRoom.State None
public static final ChatRoom.State Instantiated
public static final ChatRoom.State CreationPending
public static final ChatRoom.State Created
public static final ChatRoom.State CreationFailed
public static final ChatRoom.State TerminationPending
public static final ChatRoom.State Terminated
public static final ChatRoom.State TerminationFailed
public static final ChatRoom.State Deleted
public static ChatRoom.State[] values()
for (ChatRoom.State c : ChatRoom.State.values()) System.out.println(c);
public static ChatRoom.State 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 static ChatRoom.State fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()