Enum Constant and Description |
---|
CREATOR
The group creator
|
GROUPMANAGER
The group administrator
|
MEMBER
The group member
|
Modifier and Type | Method and Description |
---|---|
static GroupRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GroupRole[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final GroupRole CREATOR
public static final GroupRole GROUPMANAGER
public static final GroupRole MEMBER
public static GroupRole[] values()
for (GroupRole c : GroupRole.values()) System.out.println(c);
public static GroupRole 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 null