Enum ODataServiceVersion
- All Implemented Interfaces:
Serializable,Comparable<ODataServiceVersion>,java.lang.constant.Constable
This class is a container for the supported ODataServiceVersions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBiggerThan(String firstValue, String secondValue) Check iffirstValueis bigger thensecondValuestatic booleanisValidMaxODataVersion(String value) static booleanisValidODataVersion(String value) toString()static booleanvalidateDataServiceVersion(String version) Validates format and range of a data service version string.static ODataServiceVersionReturns the enum constant of this type with the specified name.static ODataServiceVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
V10
OData Version 1.0 -
V20
OData Version 2.0 -
V30
OData Version 3.0 -
V40
OData Version 4.0 -
V401
OData Version 4.01
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
validateDataServiceVersion
Validates format and range of a data service version string.- Parameters:
version- version string- Returns:
truefor a valid version
-
isBiggerThan
Check iffirstValueis bigger thensecondValue- Parameters:
firstValue- first value which is comparedsecondValue- second value which is compared- Returns:
trueif firstValue is bigger than secondValue
-
isValidODataVersion
-
isValidMaxODataVersion
-
toString
- Overrides:
toStringin classEnum<ODataServiceVersion>
-