Enum Class Bump

java.lang.Object
java.lang.Enum<Bump>
io.github.joke.conventionalversion.calc.Bump
All Implemented Interfaces:
Serializable, Comparable<Bump>, Constable

public enum Bump extends Enum<Bump>
How much of the version a set of commits moves.

Declared in ascending order of significance so that reducing a range is max over the natural ordering.

  • Enum Constant Details

    • NONE

      public static final Bump NONE
    • PATCH

      public static final Bump PATCH
    • MINOR

      public static final Bump MINOR
    • MAJOR

      public static final Bump MAJOR
  • Method Details

    • values

      public static Bump[] 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 Bump 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
    • isReleasable

      public boolean isReleasable()
      Whether commits implying this bump warrant a release at all.