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.VersionVersionParser. parse(java.lang.String input)Parses the input string.private VersionVersionParser. parseValidSemVer()Parses the <valid semver> non-terminal.(package private) static VersionVersionParser. parseValidSemVer(java.lang.String version)Parses the whole version including pre-release version and build metadata.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.BuildAwareOrder. compare(Version v1, Version v2)Compares twoVersioninstances taking into account their build metadata.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
Fields in com.github.zafarkhaja.semver.expr declared as Version Modifier and Type Field Description private VersionEqual. parsedVersionThe parsed version, the right-hand operand of the "equal" operator.private VersionGreater. parsedVersionThe parsed version, the right-hand operand of the "greater than" operator.private VersionGreaterOrEqual. parsedVersionThe parsed version, the right-hand operand of the "greater than or equal to" operator.private VersionLess. parsedVersionThe parsed version, the right-hand operand of the "less than" operator.private VersionLessOrEqual. parsedVersionThe parsed version, the right-hand operand of the "less than or equal to" operator.private VersionNotEqual. parsedVersionThe parsed version, the right-hand operand of the "not equal" operator.Methods in com.github.zafarkhaja.semver.expr that return Version Modifier and Type Method Description private 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 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.booleanAnd. interpret(Version version)Checks if both operands evaluate totrue.booleanCompositeExpression. interpret(Version version)Interprets the expression.booleanEqual. interpret(Version version)Checks if the current version equals the parsed version.booleanExpression. interpret(Version version)Interprets the expression.booleanGreater. interpret(Version version)Checks if the current version is greater than the parsed version.booleanGreaterOrEqual. interpret(Version version)Checks if the current version is greater than or equal to the parsed version.booleanLess. interpret(Version version)Checks if the current version is less than the parsed version.booleanLessOrEqual. interpret(Version version)Checks if the current version is less than or equal to the parsed version.booleanNot. interpret(Version version)Negates the given expression.booleanNotEqual. interpret(Version version)Checks if the current version does not equal the parsed version.booleanOr. interpret(Version version)Checks if one of the operands evaluates totrue.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.Constructors in com.github.zafarkhaja.semver.expr with parameters of type Version Constructor Description Equal(Version parsedVersion)Constructs aEqualexpression with the parsed version.Greater(Version parsedVersion)Constructs aGreaterexpression with the parsed version.GreaterOrEqual(Version parsedVersion)Constructs aGreaterOrEqualexpression with the parsed version.Less(Version parsedVersion)Constructs aLessexpression with the parsed version.LessOrEqual(Version parsedVersion)Constructs aLessOrEqualexpression with the parsed version.NotEqual(Version parsedVersion)Constructs aNotEqualexpression with the parsed version.
-