Enum UpdateType
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum UpdateType extends Enum<UpdateType>
The type of update that the commits represents. The following types are supported:
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<UpdateType>entries
-
Method Summary
Modifier and Type Method Description final SemanticVersionincrementVersion(SemanticVersion version)Increments the version according to the enum value. final UpdateTypevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<UpdateType>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<UpdateType>getEntries()The type of update that the commits represents. -
-
Method Detail
-
incrementVersion
final SemanticVersion incrementVersion(SemanticVersion version)
Increments the version according to the enum value. If it is UpdateType.NONE, the version is returned unchanged. If it is UpdateType.PATCH, the version is incremented as a patch. If it is UpdateType.MINOR, the version is incremented as a minor. If it is UpdateType.MAJOR, the version is incremented as a major.
- Parameters:
version- the last tagged version
-
valueOf
final UpdateType valueOf(String value)
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.)
-
values
final Array<UpdateType> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<UpdateType> getEntries()
The type of update that the commits represents. The following types are supported:
-
-
-
-