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