public static enum User.RoleType extends java.lang.Enum<User.RoleType>
Enum Constant and Description |
---|
Admin |
GuestReporter |
GuestViewer |
Reporter |
User |
Viewer |
Modifier and Type | Method and Description |
---|---|
int |
getIntValue() |
static User.RoleType |
valueOf(int anIntValue) |
static User.RoleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static User.RoleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final User.RoleType Admin
public static final User.RoleType User
public static final User.RoleType Reporter
public static final User.RoleType Viewer
public static final User.RoleType GuestReporter
public static final User.RoleType GuestViewer
public static User.RoleType[] values()
for (User.RoleType c : User.RoleType.values()) System.out.println(c);
public static User.RoleType 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 int getIntValue()
public static User.RoleType valueOf(int anIntValue)