Enum ChallengeStatus
- java.lang.Object
-
- java.lang.Enum<ChallengeStatus>
-
- de.trustable.ca3s.core.domain.enumeration.ChallengeStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ChallengeStatus>
public enum ChallengeStatus extends Enum<ChallengeStatus>
The ChallengeStatus enumeration.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChallengeStatusforValues(String value)StringgetValue()static ChallengeStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ChallengeStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final ChallengeStatus PENDING
-
VALID
public static final ChallengeStatus VALID
-
INVALID
public static final ChallengeStatus INVALID
-
DEACTIVATED
public static final ChallengeStatus DEACTIVATED
-
EXPIRED
public static final ChallengeStatus EXPIRED
-
REVOKED
public static final ChallengeStatus REVOKED
-
-
Method Detail
-
values
public static ChallengeStatus[] 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 (ChallengeStatus c : ChallengeStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChallengeStatus 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
-
forValues
public static ChallengeStatus forValues(String value)
-
getValue
public String getValue()
-
-