-
- All Implemented Interfaces:
-
kotlin.Comparable
,org.bukkit.configuration.serialization.ConfigurationSerializable
public final class SemVer implements Comparable<SemVer>, ConfigurationSerializable
Version number in Semantic Versioning 2.0.0 specification (SemVer).
Modified version of the SemVer class from the SemVer library by swiftzer.
Original: https://github.com/swiftzer/semver/blob/master/src/main/java/net/swiftzer/semver/SemVer.kt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
SemVer.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integer
major
private final Integer
minor
private final Integer
patch
private final String
preRelease
private final String
buildMetadata
-
Method Summary
Modifier and Type Method Description final Integer
getMajor()
major version, increment it when you make incompatible API changes. final Integer
getMinor()
minor version, increment it when you add functionality in a backwards-compatible manner. final Integer
getPatch()
patch version, increment it when you make backwards-compatible bug fixes. final String
getPreRelease()
pre-release version. final String
getBuildMetadata()
build metadata. final Boolean
isInitialDevelopmentPhase()
Check the version number is in initial development. Map<String, Object>
serialize()
String
toString()
Integer
compareTo(SemVer other)
Compare two SemVer objects using major, minor, patch and pre-release version as specified in SemVer specification. -
-
Method Detail
-
getMajor
final Integer getMajor()
major version, increment it when you make incompatible API changes.
-
getMinor
final Integer getMinor()
minor version, increment it when you add functionality in a backwards-compatible manner.
-
getPatch
final Integer getPatch()
patch version, increment it when you make backwards-compatible bug fixes.
-
getPreRelease
final String getPreRelease()
pre-release version.
-
getBuildMetadata
final String getBuildMetadata()
build metadata.
-
isInitialDevelopmentPhase
final Boolean isInitialDevelopmentPhase()
Check the version number is in initial development.
-
-
-
-