public enum UserType extends Enum<UserType>
User
and could be used in ChatroomManager.getUsers(UserType)
.Enum Constant and Description |
---|
BLOCKED
|
ONLINE_USER
|
SUPERVISOR
Indicates the
User whose role is Role.GLOBAL_MANAGER , Role.LOCAL_MANAGER ,
Role.MASTER , or Role.MODERATOR no matter whether he/she is online
or not. |
Modifier and Type | Method and Description |
---|---|
static UserType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserType ONLINE_USER
public static final UserType SUPERVISOR
User
whose role is Role.GLOBAL_MANAGER
, Role.LOCAL_MANAGER
,
Role.MASTER
, or Role.MODERATOR
no matter whether he/she is online
or not.public static final UserType BLOCKED
public static UserType[] values()
for (UserType c : UserType.values()) System.out.println(c);
public static UserType 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