Package com.ads.api.beans.common
Enum Class APIConstants.ExpiryType
- All Implemented Interfaces:
Serializable,Comparable<APIConstants.ExpiryType>,Constable
- Enclosing class:
- APIConstants
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLIMITEDDURATION - Refers to defined by is LIMITEDDURATION.NOEXPIRY - Refers to defined by is NOEXPIRY.NONE - Refers to defined by is NONE. -
Method Summary
Modifier and TypeMethodDescriptionstatic APIConstants.ExpiryTypegetExpiryType(String value) toString()Returns the String representation.static APIConstants.ExpiryTypeReturns the enum constant of this class with the specified name.static APIConstants.ExpiryType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
NONE - Refers to defined by is NONE. -
NO_EXPIRY
NOEXPIRY - Refers to defined by is NOEXPIRY. -
LIMITED_DURATION
LIMITEDDURATION - Refers to defined by is LIMITEDDURATION.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getExpiryType
- Parameters:
value-- Returns:
-
toString
Returns the String representation.- Overrides:
toStringin classEnum<APIConstants.ExpiryType>- Returns:
- String
-