public static enum User.Profile extends Enum<User.Profile>
| Enum Constant and Description |
|---|
Administrator |
Editor |
RegisteredUser |
Reviewer |
UserAdmin |
| Modifier and Type | Method and Description |
|---|---|
static User.Profile |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static User.Profile[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final User.Profile Editor
public static final User.Profile RegisteredUser
public static final User.Profile Administrator
public static final User.Profile UserAdmin
public static final User.Profile Reviewer
public static User.Profile[] values()
for (User.Profile c : User.Profile.values()) System.out.println(c);
public static User.Profile 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 nullCopyright © 2016. All Rights Reserved.