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
Classes in com.github.zafarkhaja.semver that implement interfaces with type arguments of type VersionModifier and TypeClassDescriptionclassTheVersionclass is the main class of the Java SemVer library.private static classA build-aware comparator.(package private) classA parser for the SemVer Version.Fields in com.github.zafarkhaja.semver with type parameters of type VersionModifier and TypeFieldDescriptionstatic final Comparator<Version> Version.BUILD_AWARE_ORDERA comparator that respects the build metadata when comparing versions.Methods in com.github.zafarkhaja.semver that return VersionModifier and TypeMethodDescriptionVersion.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.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.Parses the input string.private VersionVersionParser.parseValidSemVer()Parses the <valid semver> non-terminal.(package private) static VersionVersionParser.parseValidSemVer(String version) Parses the whole version including pre-release version and build metadata.Version.setBuildMetadata(String build) Sets the build metadata.Version.setPreReleaseVersion(String preRelease) Sets the pre-release version.static VersionCreates a new instance ofVersionas a result of parsing the specified version string.Methods in com.github.zafarkhaja.semver with parameters of type VersionModifier and TypeMethodDescriptionintCompares twoVersioninstances taking into account their build metadata.intCompares 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.booleanChecks 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
Fields in com.github.zafarkhaja.semver.expr declared as VersionModifier and TypeFieldDescriptionprivate final VersionEqual.parsedVersionThe parsed version, the right-hand operand of the "equal" operator.private final VersionGreater.parsedVersionThe parsed version, the right-hand operand of the "greater than" operator.private final VersionGreaterOrEqual.parsedVersionThe parsed version, the right-hand operand of the "greater than or equal to" operator.private final VersionLess.parsedVersionThe parsed version, the right-hand operand of the "less than" operator.private final VersionLessOrEqual.parsedVersionThe parsed version, the right-hand operand of the "less than or equal to" operator.private final VersionNotEqual.parsedVersionThe parsed version, the right-hand operand of the "not equal" operator.Methods in com.github.zafarkhaja.semver.expr that return VersionModifier and TypeMethodDescriptionprivate VersionExpressionParser.parseVersion()Parses the <version> non-terminal.private VersionExpressionParser.versionFor(int major) Creates aVersioninstance for the specified major version.private VersionExpressionParser.versionFor(int major, int minor) Creates aVersioninstance for the specified major and minor versions.private VersionExpressionParser.versionFor(int major, int minor, int patch) Creates aVersioninstance for the specified major, minor and patch versions.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.booleanChecks if both operands evaluate totrue.booleanInterprets the expression.booleanChecks if the current version equals the parsed version.booleanInterprets the expression.booleanChecks if the current version is greater than the parsed version.booleanChecks if the current version is greater than or equal to the parsed version.booleanChecks if the current version is less than the parsed version.booleanChecks if the current version is less than or equal to the parsed version.booleanNegates the given expression.booleanChecks if the current version does not equal the parsed version.booleanChecks if one of the operands evaluates totrue.static CompositeExpressionCreates aCompositeExpressionwith an underlyingLessexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingLessOrEqualexpression.static CompositeExpressionCreates aCompositeExpressionwith an underlyingNotEqualexpression.Constructors in com.github.zafarkhaja.semver.expr with parameters of type VersionModifierConstructorDescription(package private)Constructs aEqualexpression with the parsed version.(package private)Constructs aGreaterexpression with the parsed version.(package private)GreaterOrEqual(Version parsedVersion) Constructs aGreaterOrEqualexpression with the parsed version.(package private)Constructs aLessexpression with the parsed version.(package private)LessOrEqual(Version parsedVersion) Constructs aLessOrEqualexpression with the parsed version.(package private)Constructs aNotEqualexpression with the parsed version.