public enum UserState extends Enum<UserState>
| Enum Constant and Description |
|---|
MODERATED |
PENDING_CONFIRMATION |
VALID |
| Modifier and Type | Method and Description |
|---|---|
static UserState |
byId(String id) |
String |
toString() |
static UserState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserState PENDING_CONFIRMATION
public static final UserState MODERATED
public static final UserState VALID
public static UserState[] values()
for (UserState c : UserState.values()) System.out.println(c);
public static UserState 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.