public static enum ChatRoom.Role extends Enum<ChatRoom.Role>
| Enum Constant and Description |
|---|
MODERATOR |
NONE |
PARTICIPANT |
VISITOR |
| Modifier and Type | Method and Description |
|---|---|
String |
val() |
static ChatRoom.Role |
valueFrom(String val) |
static ChatRoom.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChatRoom.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatRoom.Role PARTICIPANT
public static final ChatRoom.Role MODERATOR
public static final ChatRoom.Role VISITOR
public static final ChatRoom.Role NONE
public static ChatRoom.Role[] values()
for (ChatRoom.Role c : ChatRoom.Role.values()) System.out.println(c);
public static ChatRoom.Role 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 String val()
public static ChatRoom.Role valueFrom(String val) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2019. All rights reserved.