de.piratech.dasding.data
Enum User.USER_ROLE
java.lang.Object
java.lang.Enum<User.USER_ROLE>
de.piratech.dasding.data.User.USER_ROLE
- All Implemented Interfaces:
- Serializable, Comparable<User.USER_ROLE>
- Enclosing class:
- User
public static enum User.USER_ROLE
- extends Enum<User.USER_ROLE>
|
Method Summary |
static User.USER_ROLE |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static User.USER_ROLE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
VISITOR
public static final User.USER_ROLE VISITOR
USER
public static final User.USER_ROLE USER
VERIFIED_USER
public static final User.USER_ROLE VERIFIED_USER
ADMIN
public static final User.USER_ROLE ADMIN
values
public static User.USER_ROLE[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (User.USER_ROLE c : User.USER_ROLE.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static User.USER_ROLE valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2012 Piratech. All Rights Reserved.