Uses of Class
com.github.zafarkhaja.semver.Version
-
Packages that use Version Package Description com.github.zafarkhaja.semver This is the root package of the Java SemVer library.com.github.zafarkhaja.semver.expr 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 Version Modifier and Type Field Description static java.util.Comparator<Version>Version. BUILD_AWARE_ORDERA comparator that respects the build metadata when comparing versions.Methods in com.github.zafarkhaja.semver that return Version Modifier and Type Method Description VersionVersion.Builder. build()Builds aVersionobject.static VersionVersion. forIntegers(int major)Creates a new instance ofVersionfor the specified version numbers.static VersionVersion. forIntegers(int major, int minor)Creates a new instance ofVersionfor the specified version numbers.static VersionVersion. forIntegers(int major, int minor, int patch)Creates a new instance ofVersionfor the specified version numbers.VersionVersion. incrementBuildMetadata()Increments the build metadata.VersionVersion. incrementMajorVersion()Increments the major version.VersionVersion. incrementMajorVersion(java.lang.String preRelease)Increments the major version and appends the pre-release version.VersionVersion. incrementMinorVersion()Increments the minor version.VersionVersion. incrementMinorVersion(java.lang.String preRelease)Increments the minor version and appends the pre-release version.VersionVersion. incrementPatchVersion()Increments the patch version.VersionVersion. incrementPatchVersion(java.lang.String preRelease)Increments the patch version and appends the pre-release version.VersionVersion. incrementPreReleaseVersion()Increments the pre-release version.VersionVersion. setBuildMetadata(java.lang.String build)Sets the build metadata.VersionVersion. setPreReleaseVersion(java.lang.String preRelease)Sets the pre-release version.static VersionVersion. valueOf(java.lang.String version)Creates a new instance ofVersionas a result of parsing the specified version string.Methods in com.github.zafarkhaja.semver with parameters of type Version Modifier and Type Method Description intVersion. compareTo(Version other)Compares this version to the other version.intVersion. compareWithBuildsTo(Version other)Compare this version to the other version taking into account the build metadata.booleanVersion. greaterThan(Version other)Checks if this version is greater than the other version.booleanVersion. greaterThanOrEqualTo(Version other)Checks if this version is greater than or equal to the other version.booleanVersion. lessThan(Version other)Checks if this version is less than the other version.booleanVersion. 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 Version Modifier and Type Method Description static CompositeExpressionCompositeExpression.Helper. eq(Version version)Creates aCompositeExpressionwith an underlyingEqualexpression.static CompositeExpressionCompositeExpression.Helper. gt(Version version)Creates aCompositeExpressionwith an underlyingGreaterexpression.static CompositeExpressionCompositeExpression.Helper. gte(Version version)Creates aCompositeExpressionwith an underlyingGreaterOrEqualexpression.booleanCompositeExpression. interpret(Version version)Interprets the expression.booleanExpression. interpret(Version version)Interprets the expression.static CompositeExpressionCompositeExpression.Helper. lt(Version version)Creates aCompositeExpressionwith an underlyingLessexpression.static CompositeExpressionCompositeExpression.Helper. lte(Version version)Creates aCompositeExpressionwith an underlyingLessOrEqualexpression.static CompositeExpressionCompositeExpression.Helper. neq(Version version)Creates aCompositeExpressionwith an underlyingNotEqualexpression.
-