Enum Class Builder.VersionFormat

java.lang.Object
java.lang.Enum<Builder.VersionFormat>
io.github.chrimle.classforge.Builder.VersionFormat
All Implemented Interfaces:
Serializable, Comparable<Builder.VersionFormat>, Constable
Enclosing interface:
Builder<T extends Builder<T>>

public static enum Builder.VersionFormat extends Enum<Builder.VersionFormat>
The SemVer format of a generated class.
Since:
0.9.0
Author:
Chrimle
See Also:
  • Enum Constant Details

    • COMPLETE

      public static final Builder.VersionFormat COMPLETE
      The complete version - always displayed as {major}.{minor}.{patch}.

      Examples

      • 1.2.3
      • 1.3.0
      • 2.0.0
      Since:
      0.9.0
    • SHORT

      public static final Builder.VersionFormat SHORT
      The short version - omitting trailing zeroes.

      Examples

      • 1.2.3
      • 1.3
      • 2
      Since:
      0.9.0
  • Method Details

    • values

      public static Builder.VersionFormat[] 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 Builder.VersionFormat 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