Package org.minijax.security
Enum LoginResult.Status
- java.lang.Object
-
- java.lang.Enum<LoginResult.Status>
-
- org.minijax.security.LoginResult.Status
-
- All Implemented Interfaces:
Serializable,Comparable<LoginResult.Status>
- Enclosing class:
- LoginResult
public static enum LoginResult.Status extends Enum<LoginResult.Status>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoginResult.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static LoginResult.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final LoginResult.Status SUCCESS
-
NOT_FOUND
public static final LoginResult.Status NOT_FOUND
-
INVALID
public static final LoginResult.Status INVALID
-
INCORRECT
public static final LoginResult.Status INCORRECT
-
-
Method Detail
-
values
public static LoginResult.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LoginResult.Status c : LoginResult.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoginResult.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-