public enum DefaultPermissionProfile extends java.lang.Enum<DefaultPermissionProfile> implements IPermissionProfile
Enum Constant and Description |
---|
ADMINISTRATOR |
GUEST |
MODERATOR |
STANDARD |
Modifier and Type | Method and Description |
---|---|
static DefaultPermissionProfile |
fromId(short id) |
short |
getId() |
static DefaultPermissionProfile |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultPermissionProfile[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultPermissionProfile GUEST
public static final DefaultPermissionProfile STANDARD
public static final DefaultPermissionProfile MODERATOR
public static final DefaultPermissionProfile ADMINISTRATOR
public static DefaultPermissionProfile[] values()
for (DefaultPermissionProfile c : DefaultPermissionProfile.values()) System.out.println(c);
public static DefaultPermissionProfile 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 nullpublic short getId()
getId
in interface IPermissionProfile
public static DefaultPermissionProfile fromId(short id)