Uses of Class
com.github.zafarkhaja.semver.Version
Packages that use Version
Package
Description
This is the root package of the Java SemVer library.
This package contains classes that implement the SemVer Expressions.
-
Uses of Version in com.github.zafarkhaja.semver
Fields in com.github.zafarkhaja.semver with type parameters of type VersionModifier and TypeFieldDescriptionstatic final Comparator
<Version> Version.BUILD_AWARE_ORDER
A comparator that respects the build metadata when comparing versions.Methods in com.github.zafarkhaja.semver that return VersionModifier and TypeMethodDescriptionVersion.Builder.build()
Builds aVersion
object.static Version
Version.forIntegers
(int major) Creates a new instance ofVersion
for the specified version numbers.static Version
Version.forIntegers
(int major, int minor) Creates a new instance ofVersion
for the specified version numbers.static Version
Version.forIntegers
(int major, int minor, int patch) Creates a new instance ofVersion
for the specified version numbers.Version.incrementBuildMetadata()
Increments the build metadata.Version.incrementMajorVersion()
Increments the major version.Version.incrementMajorVersion
(String preRelease) Increments the major version and appends the pre-release version.Version.incrementMinorVersion()
Increments the minor version.Version.incrementMinorVersion
(String preRelease) Increments the minor version and appends the pre-release version.Version.incrementPatchVersion()
Increments the patch version.Version.incrementPatchVersion
(String preRelease) Increments the patch version and appends the pre-release version.Version.incrementPreReleaseVersion()
Increments the pre-release version.Version.setBuildMetadata
(String build) Sets the build metadata.Version.setPreReleaseVersion
(String preRelease) Sets the pre-release version.static Version
Creates a new instance ofVersion
as a result of parsing the specified version string.Methods in com.github.zafarkhaja.semver with parameters of type VersionModifier and TypeMethodDescriptionint
Compares this version to the other version.int
Version.compareWithBuildsTo
(Version other) Compare this version to the other version taking into account the build metadata.boolean
Version.greaterThan
(Version other) Checks if this version is greater than the other version.boolean
Version.greaterThanOrEqualTo
(Version other) Checks if this version is greater than or equal to the other version.boolean
Checks if this version is less than the other version.boolean
Version.lessThanOrEqualTo
(Version other) Checks if this version is less than or equal to the other version. -
Uses of Version in com.github.zafarkhaja.semver.expr
Methods in com.github.zafarkhaja.semver.expr with parameters of type VersionModifier and TypeMethodDescriptionstatic CompositeExpression
Creates aCompositeExpression
with an underlyingEqual
expression.static CompositeExpression
Creates aCompositeExpression
with an underlyingGreater
expression.static CompositeExpression
Creates aCompositeExpression
with an underlyingGreaterOrEqual
expression.boolean
Interprets the expression.boolean
Interprets the expression.static CompositeExpression
Creates aCompositeExpression
with an underlyingLess
expression.static CompositeExpression
Creates aCompositeExpression
with an underlyingLessOrEqual
expression.static CompositeExpression
Creates aCompositeExpression
with an underlyingNotEqual
expression.