public enum Role extends Enum<Role>
Enum Constant and Description |
---|
BLOCKED
User who is blocked in a chatroom, see
Roles of Messaging Service
|
GLOBAL_MANAGER
GLOBAL_MANAGER, see
Roles of Messaging Service.
|
LOCAL_MANAGER
LOCAL_MANAGER, see
Roles of Messaging Service
|
MASTER
MASTER of a chatroom, see
Roles of Messaging Service
|
MODERATOR
MODERATOR in a chatroom, see
Roles of Messaging Service
|
NORMAL
Normal user in a chatroom, see
Roles of Messaging Service
|
UNKNOWN
Unknown
Role . |
Modifier and Type | Method and Description |
---|---|
static Role |
parse(String role) |
static Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Role GLOBAL_MANAGER
public static final Role LOCAL_MANAGER
public static final Role MASTER
public static final Role MODERATOR
public static final Role NORMAL
public static final Role BLOCKED
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static 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 null