| Modifier and Type | Method and Description |
|---|---|
static UserRole |
getByName(java.lang.String name) |
static UserRole |
getByValue(int value) |
java.lang.String |
getName() |
int |
getValue() |
static UserRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UserRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserRole OTHERS
public static final UserRole SELF
public static UserRole[] values()
for (UserRole c : UserRole.values()) System.out.println(c);
public static UserRole 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 java.lang.String getName()
public int getValue()
public static UserRole getByName(java.lang.String name)
public static UserRole getByValue(int value)