Enum Class Version.Mode

java.lang.Object
java.lang.Enum<Version.Mode>
org.elasticsearch.gradle.Version.Mode
All Implemented Interfaces:
Serializable, Comparable<Version.Mode>, Constable
Enclosing class:
Version

public static enum Version.Mode extends Enum<Version.Mode>
Specifies how a version string should be parsed.
  • Enum Constant Details

    • STRICT

      public static final Version.Mode STRICT
      Strict parsing only allows known suffixes after the patch number: "-alpha", "-beta" or "-rc". The suffix "-SNAPSHOT" is also allowed, either after the patch number, or after the other suffices.
    • RELAXED

      public static final Version.Mode RELAXED
      Relaxed parsing allows any alphanumeric suffix after the patch number.
  • Method Details

    • values

      public static Version.Mode[] 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

      public static Version.Mode valueOf(String name)
      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 name
      NullPointerException - if the argument is null