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