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_ORDERDeprecated.static final Comparator<Version> Version.INCREMENT_ORDERA comparator that sorts versions in increment order, from lowest to highest.static final Comparator<Version> Version.PRECEDENCE_ORDERA comparator that sorts versions in (highest) precedence order.Methods in com.github.zafarkhaja.semver that return VersionModifier and TypeMethodDescriptionVersion.Builder.build()Obtains aVersioninstance with previously set values.static VersionVersion.forIntegers(int major) Deprecated.forRemoval since 0.10.0, useof(long)static VersionVersion.forIntegers(int major, int minor) Deprecated.forRemoval since 0.10.0, useof(long, long)static VersionVersion.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 nextVersionof the specified major version number, with an optional pre-release version label.Version.nextMajorVersion(String... preReleaseIds) Obtains the nextVersionby incrementing the major version number by one, with an optional pre-release version label.Version.nextMinorVersion(long minor, String... preReleaseIds) Obtains the nextVersionof the specified minor version number, with an optional pre-release version label.Version.nextMinorVersion(String... preReleaseIds) Obtains the nextVersionby incrementing the minor version number by one, with an optional pre-release version label.Version.nextPatchVersion(long patch, String... preReleaseIds) Obtains the nextVersionof the specified patch version number, with an optional pre-release version label.Version.nextPatchVersion(String... preReleaseIds) Obtains the nextVersionby incrementing the patch version number by one, with an optional pre-release version label.Version.nextPreReleaseVersion(String... ids) Obtains the nextVersionby incrementing or replacing the pre-release version.static VersionVersion.of(long major) Obtains aVersioninstance of the specified major version.static VersionVersion.of(long major, long minor) Obtains aVersioninstance of the specified major and minor versions.static VersionVersion.of(long major, long minor, long patch) Obtains aVersioninstance of the specified major, minor and patch versions.static VersionObtains aVersioninstance of the specified major, minor, patch and pre-release versions.static VersionObtains aVersioninstance of the specified major, minor, patch and pre-release versions, as well as build metadata.static VersionObtains aVersioninstance of the specified major, minor and pre-release versions.static VersionObtains aVersioninstance of the specified major, minor and pre-release versions, as well as build metadata.static VersionObtains aVersioninstance of the specified major and pre-release versions.static VersionObtains aVersioninstance of the specified major and pre-release versions, as well as build metadata.static VersionObtains aVersioninstance by parsing the specified string in strict mode, which ensures full compliance with the specification.static VersionObtains aVersioninstance 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 nextVersionby dropping the pre-release version.static VersionDeprecated.forRemoval since 0.10.0, useparse(String)Version.withBuildMetadata(String... ids) Obtains a newVersionwith the specified build identifiers.Version.withoutBuildMetadata()Obtains a (new)Versionwithout build metadata.Methods in com.github.zafarkhaja.semver that return types with arguments of type VersionModifier and TypeMethodDescriptionTries to obtain aVersioninstance by parsing the specified string in strict mode, which ensures full compliance with the specification.Tries to obtain aVersioninstance by parsing the specified string.Methods in com.github.zafarkhaja.semver with parameters of type VersionModifier and TypeMethodDescriptionintCompares versions, along with their build metadata.intVersion.compareToIgnoreBuildMetadata(Version other) Compares versions, ignoring their build metadata.intVersion.compareWithBuildsTo(Version other) Deprecated.forRemoval since 0.10.0, usecompareTo(Version)booleanVersion.greaterThan(Version other) Deprecated.forRemoval since 0.10.0, useisHigherThan(Version)booleanVersion.greaterThanOrEqualTo(Version other) Deprecated.forRemoval since 0.10.0, useisHigherThanOrEquivalentTo(Version)booleanVersion.isEquivalentTo(Version other) Determines if thisVersionhas the same precedence as the specifiedVersion.booleanVersion.isHigherThan(Version other) Determines if thisVersionhas a higher precedence compared with the specifiedVersion.booleanVersion.isHigherThanOrEquivalentTo(Version other) Determines if thisVersionhas a higher or equal precedence compared with the specifiedVersion.booleanVersion.isLowerThan(Version other) Determines if thisVersionhas a lower precedence compared with the specifiedVersion.booleanVersion.isLowerThanOrEquivalentTo(Version other) Determines if thisVersionhas a lower or equal precedence compared with the specifiedVersion.booleanVersion.isPublicApiCompatibleWith(Version other) Checks if thisVersionis compatible with the specifiedVersionin terms of their public API.booleanVersion.isSameMajorVersionAs(Version other) Checks if thisVersionis compatible with the specifiedVersionin terms of their major versions.booleanVersion.isSameMinorVersionAs(Version other) Checks if thisVersionis compatible with the specifiedVersionin terms of their major and minor versions.booleanVersion.isSamePatchVersionAs(Version other) Checks if thisVersionis compatible with the specifiedVersionin terms of their major, minor and patch versions.booleanDeprecated.forRemoval since 0.10.0, useisLowerThan(Version)booleanVersion.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 CompositeExpressionCreates aCompositeExpressionwith an underlyingEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingGreaterexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingGreaterOrEqualexpression.booleanInterprets the expression.booleanInterprets the expression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingLessexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingLessOrEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingNotEqualexpression.default boolean
compareTo(Version)