Enum ODataServiceVersion

java.lang.Object
java.lang.Enum<ODataServiceVersion>
org.apache.olingo.commons.api.edm.constants.ODataServiceVersion
All Implemented Interfaces:
Serializable, Comparable<ODataServiceVersion>, java.lang.constant.Constable

public enum ODataServiceVersion extends Enum<ODataServiceVersion>
This class is a container for the supported ODataServiceVersions.
  • Enum Constant Details

  • Method Details

    • values

      public static ODataServiceVersion[] 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

      public static ODataServiceVersion 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 name
      NullPointerException - if the argument is null
    • validateDataServiceVersion

      public static boolean validateDataServiceVersion(String version)
      Validates format and range of a data service version string.
      Parameters:
      version - version string
      Returns:
      true for a valid version
    • isBiggerThan

      public static boolean isBiggerThan(String firstValue, String secondValue)
      Check if firstValue is bigger then secondValue
      Parameters:
      firstValue - first value which is compared
      secondValue - second value which is compared
      Returns:
      true if firstValue is bigger than secondValue
    • isValidODataVersion

      public static boolean isValidODataVersion(String value)
    • isValidMaxODataVersion

      public static boolean isValidMaxODataVersion(String value)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ODataServiceVersion>