-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class SemanticVersion implements Comparable<SemanticVersion>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSemanticVersion.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisStableprivate final ULongmajorprivate final ULongminorprivate final ULongpatchprivate final PreReleaseIdentifierpreReleaseprivate final PreReleaseIdentifierbuildMetadata
-
Constructor Summary
Constructors Constructor Description SemanticVersion(String major, String minor, String patch, String preRelease, String buildMetadata)SemanticVersion(ULong major, ULong minor, ULong patch, PreReleaseIdentifier preRelease, PreReleaseIdentifier buildMetadata)
-
Method Summary
Modifier and Type Method Description final BooleangetIsStable()final ULonggetMajor()final ULonggetMinor()final ULonggetPatch()final PreReleaseIdentifiergetPreRelease()final PreReleaseIdentifiergetBuildMetadata()StringtoString()final SemanticVersionwithoutBuildMetadata()IntegercompareTo(SemanticVersion other)-
-
Constructor Detail
-
SemanticVersion
SemanticVersion(String major, String minor, String patch, String preRelease, String buildMetadata)
-
SemanticVersion
SemanticVersion(ULong major, ULong minor, ULong patch, PreReleaseIdentifier preRelease, PreReleaseIdentifier buildMetadata)
-
-
Method Detail
-
getIsStable
final Boolean getIsStable()
-
getPreRelease
final PreReleaseIdentifier getPreRelease()
-
getBuildMetadata
final PreReleaseIdentifier getBuildMetadata()
-
withoutBuildMetadata
final SemanticVersion withoutBuildMetadata()
-
compareTo
Integer compareTo(SemanticVersion other)
-
-
-
-