Package com.ads.api.beans.common
Enum Class APIConstants.VersionMode
- All Implemented Interfaces:
Serializable,Comparable<APIConstants.VersionMode>,Constable
- Enclosing class:
- APIConstants
These ENUM constants are used to specify the VersionMode such as
ALL_VERSIONS, CURRENT_VERSION, and SPECIFIC_VERSION. The constants of
this enumerated type provides a simple classification of the declared
elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionALL_VERSIONS - Refers to all elements.CURRENT_VERSION - Refers to the present/current version.SPECIFIC_VERSION - Refers to a particular version. -
Method Summary
Modifier and TypeMethodDescriptionstatic APIConstants.VersionModegetVersionMode(String value) static APIConstants.VersionModeReturns the enum constant of this class with the specified name.static APIConstants.VersionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL_VERSIONS
ALL_VERSIONS - Refers to all elements. -
CURRENT_VERSION
CURRENT_VERSION - Refers to the present/current version. -
SPECIFIC_VERSION
SPECIFIC_VERSION - Refers to a particular version.
-
-
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
-
getVersionMode
- Parameters:
value-- Returns:
-