public static enum User.Role extends Enum<User.Role>
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static User.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static User.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final User.Role END_USER
public static final User.Role AGENT
public static final User.Role ADMIN
public static User.Role[] values()
for (User.Role c : User.Role.values()) System.out.println(c);
public static User.Role 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 © 2013–2014. All rights reserved.