Enum SemanticVersionChange
- java.lang.Object
-
- java.lang.Enum<SemanticVersionChange>
-
- net.videki.semver.cc.release.common.SemanticVersionChange
-
- All Implemented Interfaces:
Serializable,Comparable<SemanticVersionChange>
public enum SemanticVersionChange extends Enum<SemanticVersionChange>
Semantic version change types. The top most of these is returned when parsing the commits since the commits after the last scm tag.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SemanticVersionChangevalueOf(String name)Returns the enum constant of this type with the specified name.static SemanticVersionChange[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAJOR
public static final SemanticVersionChange MAJOR
Major version bump needed.
-
MINOR
public static final SemanticVersionChange MINOR
Minor version bump is needed.
-
PATCH
public static final SemanticVersionChange PATCH
Patch version bump is needed.
-
NONE
public static final SemanticVersionChange NONE
No version bump is needed.
-
-
Method Detail
-
values
public static SemanticVersionChange[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SemanticVersionChange c : SemanticVersionChange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SemanticVersionChange 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 nameNullPointerException- if the argument is null
-
-