Package org.cyclos.model.users.phones
Enum CodeVerificationStatus
- java.lang.Object
-
- java.lang.Enum<CodeVerificationStatus>
-
- org.cyclos.model.users.phones.CodeVerificationStatus
-
- All Implemented Interfaces:
Serializable,Comparable<CodeVerificationStatus>
public enum CodeVerificationStatus extends Enum<CodeVerificationStatus>
Possible status for the verification of a code entered by a user.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILEDThe code was wrong (it doesn't match the expected value)MAX_ATTEMPTS_REACHEDThe max attempts with an invalid code was reached.SUCCESSThe code was correct and accepted.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSuccess()static CodeVerificationStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static CodeVerificationStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final CodeVerificationStatus SUCCESS
The code was correct and accepted.
-
FAILED
public static final CodeVerificationStatus FAILED
The code was wrong (it doesn't match the expected value)
-
MAX_ATTEMPTS_REACHED
public static final CodeVerificationStatus MAX_ATTEMPTS_REACHED
The max attempts with an invalid code was reached.
-
-
Method Detail
-
values
public static CodeVerificationStatus[] 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 (CodeVerificationStatus c : CodeVerificationStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CodeVerificationStatus 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
-
isSuccess
public boolean isSuccess()
-
-