public enum ODataServiceVersion extends Enum<ODataServiceVersion>
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isBiggerThan(String firstValue,
String secondValue)
Check if
firstValue is bigger then secondValue |
static boolean |
isValidMaxODataVersion(String value) |
static boolean |
isValidODataVersion(String value) |
String |
toString() |
static boolean |
validateDataServiceVersion(String version)
Validates format and range of a data service version string.
|
static ODataServiceVersion |
valueOf(String name)
Returns 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.
|
public static final ODataServiceVersion V10
public static final ODataServiceVersion V20
public static final ODataServiceVersion V30
public static final ODataServiceVersion V40
public static final ODataServiceVersion V401
public static ODataServiceVersion[] values()
for (ODataServiceVersion c : ODataServiceVersion.values()) System.out.println(c);
public static ODataServiceVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean validateDataServiceVersion(String version)
version
- version stringtrue
for a valid versionpublic static boolean isBiggerThan(String firstValue, String secondValue)
firstValue
is bigger then secondValue
firstValue
- first value which is comparedsecondValue
- second value which is comparedtrue
if firstValue is bigger than secondValuepublic static boolean isValidODataVersion(String value)
public static boolean isValidMaxODataVersion(String value)
public String toString()
toString
in class Enum<ODataServiceVersion>
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.