- INCREMENT_ORDER - Static variable in class com.github.zafarkhaja.semver.Version
-
A comparator that sorts versions in increment order, from lowest to highest.
- incrementBuildMetadata() - Method in class com.github.zafarkhaja.semver.Version
-
- incrementMajorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
- incrementMajorVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
- incrementMinorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
- incrementMinorVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
- incrementPatchVersion() - Method in class com.github.zafarkhaja.semver.Version
-
- incrementPatchVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
- incrementPreReleaseVersion() - Method in class com.github.zafarkhaja.semver.Version
-
- interpret(String) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Interprets the expression.
- interpret(Version) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Interprets the expression.
- interpret(Version) - Method in interface com.github.zafarkhaja.semver.expr.Expression
-
Interprets the expression.
- isEquivalentTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this Version has the same precedence as the
specified Version.
- isHigherThan(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this Version has a higher precedence compared with
the specified Version.
- isHigherThanOrEquivalentTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this Version has a higher or equal precedence
compared with the specified Version.
- isLowerThan(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this Version has a lower precedence compared with
the specified Version.
- isLowerThanOrEquivalentTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this Version has a lower or equal precedence
compared with the specified Version.
- isMatchedBy(E) - Method in interface com.github.zafarkhaja.semver.util.Stream.ElementType
-
Checks if the specified element matches this type.
- isPreRelease() - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this Version represents a pre-release version.
- isPublicApiCompatibleWith(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this Version is compatible with the specified Version
in terms of their public API.
- isPublicApiStable() - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this Version represents a stable public API.
- isSameMajorVersionAs(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this Version is compatible with the specified Version
in terms of their major versions.
- isSameMinorVersionAs(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this Version is compatible with the specified Version
in terms of their major and minor versions.
- isSamePatchVersionAs(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this Version is compatible with the specified Version
in terms of their major, minor and patch versions.
- isStable() - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this Version represents a stable version.
- isValid(String) - Static method in class com.github.zafarkhaja.semver.Version
-
Checks validity of the specified SemVer version string in strict mode,
which ensures full compliance with the specification.
- isValid(String, boolean) - Static method in class com.github.zafarkhaja.semver.Version
-
Checks validity of the specified SemVer version string.
- iterator() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns an iterator over elements that are left in this stream.
- neq(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a CompositeExpression with
an underlying NotEqual expression.
- neq(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a CompositeExpression with
an underlying NotEqual expression.
- newInstance() - Static method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Creates and returns new instance of the ExpressionParser class.
- nextMajorVersion(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next Version by incrementing the major version number
by one, with an optional pre-release version label.
- nextMajorVersion(long, String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next Version of the specified major version number,
with an optional pre-release version label.
- nextMinorVersion(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next Version by incrementing the minor version number
by one, with an optional pre-release version label.
- nextMinorVersion(long, String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next Version of the specified minor version number,
with an optional pre-release version label.
- nextPatchVersion(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next Version by incrementing the patch version number
by one, with an optional pre-release version label.
- nextPatchVersion(long, String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next Version of the specified patch version number,
with an optional pre-release version label.
- nextPreReleaseVersion(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next Version by incrementing or replacing the
pre-release version.
- not(Expression) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a CompositeExpression with
an underlying Not expression.
- of(long) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major version.
- of(long, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major and pre-release
versions.
- of(long, String, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major and pre-release
versions, as well as build metadata.
- of(long, long) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major and minor versions.
- of(long, long, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major, minor and
pre-release versions.
- of(long, long, String, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major, minor and
pre-release versions, as well as build metadata.
- of(long, long, long) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major, minor and
patch versions.
- of(long, long, long, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major, minor, patch
and pre-release versions.
- of(long, long, long, String, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance of the specified major, minor, patch
and pre-release versions, as well as build metadata.
- or(Expression) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Adds another Expression to CompositeExpression
using Or logical expression.
- parse(String) - Method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Parses the SemVer Expressions.
- parse(String) - Method in interface com.github.zafarkhaja.semver.Parser
-
Parses the input string.
- parse(String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance by parsing the specified string in
strict mode, which ensures full compliance with the specification.
- parse(String, boolean) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a Version instance by parsing the specified string.
- ParseException - Exception in com.github.zafarkhaja.semver
-
Thrown to indicate an error during the parsing.
- ParseException() - Constructor for exception com.github.zafarkhaja.semver.ParseException
-
Constructs a ParseException instance with no error message.
- ParseException(String) - Constructor for exception com.github.zafarkhaja.semver.ParseException
-
Constructs a ParseException instance with an error message.
- ParseException(String, UnexpectedCharacterException) - Constructor for exception com.github.zafarkhaja.semver.ParseException
-
Constructs a ParseException instance with an error message
and the cause exception.
- Parser<T> - Interface in com.github.zafarkhaja.semver
-
A parser interface.
- patchVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns this Version's patch version.
- positiveLookahead(T...) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Checks if the next element in this stream is of the expected types.
- positiveLookaheadBefore(Stream.ElementType<E>, T...) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Checks if there exists an element in this stream of
the expected types before the specified type.
- positiveLookaheadUntil(int, T...) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Checks if there is an element in this stream of
the expected types until the specified position.
- PRECEDENCE_ORDER - Static variable in class com.github.zafarkhaja.semver.Version
-
A comparator that sorts versions in (highest) precedence order.
- preReleaseVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns this Version's pre-release version in the form of
dot-separated identifiers.
- pushBack() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Pushes back one element at a time.
- test(Version) - Method in interface com.github.zafarkhaja.semver.expr.Expression
-
- toArray() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns an array containing all of the
elements that are left in this stream.
- toBuilder() - Method in class com.github.zafarkhaja.semver.Version
-
Converts this Version to Builder.
- toStableVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next Version by dropping the pre-release version.
- toString() - Method in exception com.github.zafarkhaja.semver.expr.LexerException
-
Returns the string representation of this exception.
- toString() - Method in exception com.github.zafarkhaja.semver.expr.UnexpectedTokenException
-
Returns the string representation of this exception
containing the information about the unexpected
token and, if available, about the expected types.
- toString() - Method in exception com.github.zafarkhaja.semver.ParseException
-
Returns the string representation of this exception.
- toString() - Method in exception com.github.zafarkhaja.semver.UnexpectedCharacterException
-
Returns the string representation of this exception
containing the information about the unexpected
element and, if available, about the expected types.
- toString() - Method in exception com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Returns the string representation of this exception
containing the information about the unexpected
element and, if available, about the expected types.
- toString() - Method in class com.github.zafarkhaja.semver.Version
- tryParse(String) - Static method in class com.github.zafarkhaja.semver.Version
-
Tries to obtain a Version instance by parsing the specified string
in strict mode, which ensures full compliance with the specification.
- tryParse(String, boolean) - Static method in class com.github.zafarkhaja.semver.Version
-
Tries to obtain a Version instance by parsing the specified string.