Enum Class Version.Format

java.lang.Object
java.lang.Enum<Version.Format>
io.spring.initializr.generator.version.Version.Format
All Implemented Interfaces:
Serializable, Comparable<Version.Format>, Constable
Enclosing class:
Version

public static enum Version.Format extends Enum<Version.Format>
Define the supported version format.
  • Enum Constant Details

    • V1

      public static final Version.Format V1
      Original version format, i.e. Major.Minor.Patch.Qualifier using BUILD-SNAPSHOT as the qualifier for snapshots and RELEASE for GAs.
    • V2

      public static final Version.Format V2
      SemVer-compliant format, i.e. Major.Minor.Patch-Qualifier using SNAPSHOT as the qualifier for snapshots and no qualifier for GAs.
  • Method Details

    • values

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