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
Deprecated.static final Comparator
<Version> Version.INCREMENT_ORDER
A comparator that sorts versions in increment order, from lowest to highest.static final Comparator
<Version> Version.PRECEDENCE_ORDER
A comparator that sorts versions in (highest) precedence order.Methods in com.github.zafarkhaja.semver that return VersionModifier and TypeMethodDescriptionVersion.Builder.build()
Obtains aVersion
instance with previously set values.static Version
Version.forIntegers
(int major) Deprecated.forRemoval since 0.10.0, useof(long)
static Version
Version.forIntegers
(int major, int minor) Deprecated.forRemoval since 0.10.0, useof(long, long)
static Version
Version.forIntegers
(int major, int minor, int patch) Deprecated.forRemoval since 0.10.0, useof(long, long, long)
Version.incrementBuildMetadata()
Deprecated.forRemoval since 0.10.0Version.incrementMajorVersion()
Deprecated.forRemoval since 0.10.0, usenextMajorVersion(String...)
Version.incrementMajorVersion
(String preRelease) Deprecated.forRemoval since 0.10.0, usenextMajorVersion(String...)
Version.incrementMinorVersion()
Deprecated.forRemoval since 0.10.0, usenextMinorVersion(String...)
Version.incrementMinorVersion
(String preRelease) Deprecated.forRemoval since 0.10.0, usenextMinorVersion(String...)
Version.incrementPatchVersion()
Deprecated.forRemoval since 0.10.0, usenextPatchVersion(String...)
Version.incrementPatchVersion
(String preRelease) Deprecated.forRemoval since 0.10.0, usenextPatchVersion(String...)
Version.incrementPreReleaseVersion()
Deprecated.forRemoval since 0.10.0, usenextPreReleaseVersion(String...)
Version.nextMajorVersion
(long major, String... preReleaseIds) Obtains the nextVersion
of the specified major version number, with an optional pre-release version label.Version.nextMajorVersion
(String... preReleaseIds) Obtains the nextVersion
by incrementing the major version number by one, with an optional pre-release version label.Version.nextMinorVersion
(long minor, String... preReleaseIds) Obtains the nextVersion
of the specified minor version number, with an optional pre-release version label.Version.nextMinorVersion
(String... preReleaseIds) Obtains the nextVersion
by incrementing the minor version number by one, with an optional pre-release version label.Version.nextPatchVersion
(long patch, String... preReleaseIds) Obtains the nextVersion
of the specified patch version number, with an optional pre-release version label.Version.nextPatchVersion
(String... preReleaseIds) Obtains the nextVersion
by incrementing the patch version number by one, with an optional pre-release version label.Version.nextPreReleaseVersion
(String... ids) Obtains the nextVersion
by incrementing or replacing the pre-release version.static Version
Version.of
(long major) Obtains aVersion
instance of the specified major version.static Version
Version.of
(long major, long minor) Obtains aVersion
instance of the specified major and minor versions.static Version
Version.of
(long major, long minor, long patch) Obtains aVersion
instance of the specified major, minor and patch versions.static Version
Obtains aVersion
instance of the specified major, minor, patch and pre-release versions.static Version
Obtains aVersion
instance of the specified major, minor, patch and pre-release versions, as well as build metadata.static Version
Obtains aVersion
instance of the specified major, minor and pre-release versions.static Version
Obtains aVersion
instance of the specified major, minor and pre-release versions, as well as build metadata.static Version
Obtains aVersion
instance of the specified major and pre-release versions.static Version
Obtains aVersion
instance of the specified major and pre-release versions, as well as build metadata.static Version
Obtains aVersion
instance by parsing the specified string in strict mode, which ensures full compliance with the specification.static Version
Obtains aVersion
instance by parsing the specified string.Version.setBuildMetadata
(String build) Deprecated.forRemoval since 0.10.0, usewithBuildMetadata(String...)
Version.setPreReleaseVersion
(String preRelease) Deprecated.forRemoval since 0.10.0, consider usingnextPreReleaseVersion(String...)
Version.toStableVersion()
Obtains the nextVersion
by dropping the pre-release version.static Version
Deprecated.forRemoval since 0.10.0, useparse(String)
Version.withBuildMetadata
(String... ids) Obtains a newVersion
with the specified build identifiers.Version.withoutBuildMetadata()
Obtains a (new)Version
without build metadata.Methods in com.github.zafarkhaja.semver that return types with arguments of type VersionModifier and TypeMethodDescriptionTries to obtain aVersion
instance by parsing the specified string in strict mode, which ensures full compliance with the specification.Tries to obtain aVersion
instance by parsing the specified string.Methods in com.github.zafarkhaja.semver with parameters of type VersionModifier and TypeMethodDescriptionint
Compares versions, along with their build metadata.int
Version.compareToIgnoreBuildMetadata
(Version other) Compares versions, ignoring their build metadata.int
Version.compareWithBuildsTo
(Version other) Deprecated.forRemoval since 0.10.0, usecompareTo(Version)
boolean
Version.greaterThan
(Version other) Deprecated.forRemoval since 0.10.0, useisHigherThan(Version)
boolean
Version.greaterThanOrEqualTo
(Version other) Deprecated.forRemoval since 0.10.0, useisHigherThanOrEquivalentTo(Version)
boolean
Version.isEquivalentTo
(Version other) Determines if thisVersion
has the same precedence as the specifiedVersion
.boolean
Version.isHigherThan
(Version other) Determines if thisVersion
has a higher precedence compared with the specifiedVersion
.boolean
Version.isHigherThanOrEquivalentTo
(Version other) Determines if thisVersion
has a higher or equal precedence compared with the specifiedVersion
.boolean
Version.isLowerThan
(Version other) Determines if thisVersion
has a lower precedence compared with the specifiedVersion
.boolean
Version.isLowerThanOrEquivalentTo
(Version other) Determines if thisVersion
has a lower or equal precedence compared with the specifiedVersion
.boolean
Version.isPublicApiCompatibleWith
(Version other) Checks if thisVersion
is compatible with the specifiedVersion
in terms of their public API.boolean
Version.isSameMajorVersionAs
(Version other) Checks if thisVersion
is compatible with the specifiedVersion
in terms of their major versions.boolean
Version.isSameMinorVersionAs
(Version other) Checks if thisVersion
is compatible with the specifiedVersion
in terms of their major and minor versions.boolean
Version.isSamePatchVersionAs
(Version other) Checks if thisVersion
is compatible with the specifiedVersion
in terms of their major, minor and patch versions.boolean
Deprecated.forRemoval since 0.10.0, useisLowerThan(Version)
boolean
Version.lessThanOrEqualTo
(Version other) Deprecated.forRemoval since 0.10.0, useisLowerThanOrEquivalentTo(Version)
Method parameters in com.github.zafarkhaja.semver with type arguments of type 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.default boolean
compareTo(Version)