public static enum Conference.RoomEvent extends Enum<Conference.RoomEvent>
Enum Constant and Description |
---|
JOINED
We have joined the room
|
MEMBER_JOIN
A member join the room
|
MEMBER_LEAVE
A member left the room
|
QUIT
We have left the room
|
Modifier and Type | Method and Description |
---|---|
static Conference.RoomEvent |
fromInteger(int i)
Initialize from integer
|
static Conference.RoomEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Conference.RoomEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Conference.RoomEvent JOINED
public static final Conference.RoomEvent QUIT
public static final Conference.RoomEvent MEMBER_JOIN
public static final Conference.RoomEvent MEMBER_LEAVE
public static Conference.RoomEvent[] values()
for (Conference.RoomEvent c : Conference.RoomEvent.values()) System.out.println(c);
public static Conference.RoomEvent 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 nullpublic static Conference.RoomEvent fromInteger(int i)
i
- room event idCopyright © 2015. All rights reserved.