Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addBuildIdentifiers(String...) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Appends (additional) build identifier(s).
- addPreReleaseIdentifiers(String...) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Appends (additional) pre-release identifier(s).
- and(Expression) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Adds another
ExpressiontoCompositeExpressionusingAndlogical expression.
B
- build() - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Obtains a
Versioninstance with previously set values. - BUILD_AWARE_ORDER - Static variable in class com.github.zafarkhaja.semver.Version
-
Deprecated.
- Builder() - Constructor for class com.github.zafarkhaja.semver.Version.Builder
-
Default constructor, initializes fields with default values (0.0.0)
- Builder(String) - Constructor for class com.github.zafarkhaja.semver.Version.Builder
-
Deprecated.forRemoval since 0.10.0
- buildMetadata() - Method in class com.github.zafarkhaja.semver.Version
-
Returns this
Version's build metadata in the form of dot-separated identifiers.
C
- com.github.zafarkhaja.semver - module com.github.zafarkhaja.semver
- com.github.zafarkhaja.semver - package com.github.zafarkhaja.semver
-
This is the root package of the Java SemVer library.
- com.github.zafarkhaja.semver.expr - package com.github.zafarkhaja.semver.expr
-
This package contains classes that implement the SemVer Expressions.
- com.github.zafarkhaja.semver.util - package com.github.zafarkhaja.semver.util
-
This package provides some useful utility classes.
- compareTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Compares versions, along with their build metadata.
- compareToIgnoreBuildMetadata(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Compares versions, ignoring their build metadata.
- compareWithBuildsTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.compareTo(Version) - CompositeExpression - Class in com.github.zafarkhaja.semver.expr
-
This class implements internal DSL for the SemVer Expressions using fluent interface.
- CompositeExpression(Expression) - Constructor for class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Constructs a
CompositeExpressionwith an underlyingExpression. - CompositeExpression.Helper - Class in com.github.zafarkhaja.semver.expr
-
A class with static helper methods.
- consume() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Consumes the next element in this stream.
- consume(T...) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Consumes the next element in this stream only if it is of the expected types.
- currentOffset() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns the current offset of this stream.
E
- eq(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingEqualexpression. - eq(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingEqualexpression. - equals(Object) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionexactly equals the specifiedVersion. - Expression - Interface in com.github.zafarkhaja.semver.expr
-
The
Expressioninterface is to be implemented by the nodes of the Abstract Syntax Tree produced by theExpressionParserclass. - ExpressionParser - Class in com.github.zafarkhaja.semver.expr
-
A parser for the SemVer Expressions.
F
- forIntegers(int) - Static method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.of(long) - forIntegers(int, int) - Static method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.of(long, long) - forIntegers(int, int, int) - Static method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.of(long, long, long)
G
- getBuildMetadata() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.buildMetadata() - getExpectedElementTypes() - Method in exception class com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Gets the expected element types.
- getMajorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.majorVersion() - getMinorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.minorVersion() - getNormalVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0
- getPatchVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.patchVersion() - getPosition() - Method in exception class com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Gets the position of the unexpected element.
- getPreReleaseVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.preReleaseVersion() - getUnexpectedElement() - Method in exception class com.github.zafarkhaja.semver.util.UnexpectedElementException
-
Gets the unexpected element.
- greaterThan(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.isHigherThan(Version) - greaterThanOrEqualTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.isHigherThanOrEquivalentTo(Version) - gt(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingGreaterexpression. - gt(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingGreaterexpression. - gte(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingGreaterOrEqualexpression. - gte(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingGreaterOrEqualexpression.
H
- hashCode() - Method in class com.github.zafarkhaja.semver.Version
- Helper() - Constructor for class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
I
- 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
-
Deprecated.forRemoval since 0.10.0
- incrementMajorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.nextMajorVersion(String...) - incrementMajorVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.nextMajorVersion(String...) - incrementMinorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.nextMinorVersion(String...) - incrementMinorVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.nextMinorVersion(String...) - incrementPatchVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.nextPatchVersion(String...) - incrementPatchVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.nextPatchVersion(String...) - incrementPreReleaseVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.nextPreReleaseVersion(String...) - 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.
- interpret(String) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Interprets the expression.
- isEquivalentTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this
Versionhas the same precedence as the specifiedVersion. - isHigherThan(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this
Versionhas a higher precedence compared with the specifiedVersion. - isHigherThanOrEquivalentTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this
Versionhas a higher or equal precedence compared with the specifiedVersion. - isLowerThan(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this
Versionhas a lower precedence compared with the specifiedVersion. - isLowerThanOrEquivalentTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Determines if this
Versionhas a lower or equal precedence compared with the specifiedVersion. - 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
Versionrepresents a pre-release version. - isPublicApiCompatibleWith(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionis compatible with the specifiedVersionin terms of their public API. - isPublicApiStable() - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionrepresents a stable public API. - isSameMajorVersionAs(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionis compatible with the specifiedVersionin terms of their major versions. - isSameMinorVersionAs(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionis compatible with the specifiedVersionin terms of their major and minor versions. - isSamePatchVersionAs(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionis compatible with the specifiedVersionin terms of their major, minor and patch versions. - isStable() - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionrepresents 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.
L
- lessThan(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.isLowerThan(Version) - lessThanOrEqualTo(Version) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.isLowerThanOrEquivalentTo(Version) - LexerException - Exception Class in com.github.zafarkhaja.semver.expr
-
Thrown during the lexical analysis when an illegal character is encountered.
- lookahead() - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns the next element in this stream without consuming it.
- lookahead(int) - Method in class com.github.zafarkhaja.semver.util.Stream
-
Returns the element at the specified position in this stream without consuming it.
- lt(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingLessexpression. - lt(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingLessexpression. - lte(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingLessOrEqualexpression. - lte(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingLessOrEqualexpression.
M
- majorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns this
Version's major version. - minorVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Returns this
Version's minor version.
N
- neq(Version) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingNotEqualexpression. - neq(String) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingNotEqualexpression. - newInstance() - Static method in class com.github.zafarkhaja.semver.expr.ExpressionParser
-
Creates and returns new instance of the
ExpressionParserclass. - nextMajorVersion(long, String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next
Versionof the specified major version number, with an optional pre-release version label. - nextMajorVersion(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next
Versionby incrementing the major 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
Versionof the specified minor version number, with an optional pre-release version label. - nextMinorVersion(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next
Versionby incrementing the minor 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
Versionof the specified patch version number, with an optional pre-release version label. - nextPatchVersion(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next
Versionby incrementing the patch version number by one, with an optional pre-release version label. - nextPreReleaseVersion(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next
Versionby incrementing or replacing the pre-release version. - not(Expression) - Static method in class com.github.zafarkhaja.semver.expr.CompositeExpression.Helper
-
Creates a
CompositeExpressionwith an underlyingNotexpression.
O
- of(long) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a
Versioninstance of the specified major version. - of(long, long) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a
Versioninstance of the specified major and minor versions. - of(long, long, long) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a
Versioninstance of the specified major, minor and patch versions. - of(long, long, long, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a
Versioninstance 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
Versioninstance of the specified major, minor, patch and pre-release versions, as well as build metadata. - of(long, long, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a
Versioninstance 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
Versioninstance of the specified major, minor and pre-release versions, as well as build metadata. - of(long, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a
Versioninstance of the specified major and pre-release versions. - of(long, String, String) - Static method in class com.github.zafarkhaja.semver.Version
-
Obtains a
Versioninstance of the specified major and pre-release versions, as well as build metadata. - or(Expression) - Method in class com.github.zafarkhaja.semver.expr.CompositeExpression
-
Adds another
ExpressiontoCompositeExpressionusingOrlogical expression.
P
- 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
Versioninstance 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
Versioninstance by parsing the specified string. - ParseException - Exception Class in com.github.zafarkhaja.semver
-
Thrown to indicate an error during the parsing.
- ParseException() - Constructor for exception class com.github.zafarkhaja.semver.ParseException
-
Constructs a
ParseExceptioninstance with no error message. - ParseException(String) - Constructor for exception class com.github.zafarkhaja.semver.ParseException
-
Constructs a
ParseExceptioninstance with an error message. - ParseException(String, UnexpectedCharacterException) - Constructor for exception class com.github.zafarkhaja.semver.ParseException
-
Constructs a
ParseExceptioninstance 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.
S
- satisfies(String) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionsatisfies the specified range expression. - satisfies(Predicate<Version>) - Method in class com.github.zafarkhaja.semver.Version
-
Checks if this
Versionsatisfies the specified predicate. - setBuildMetadata(String) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.withBuildMetadata(String...) - setBuildMetadata(String...) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the build metadata.
- setMajorVersion(long) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the major version.
- setMinorVersion(long) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the minor version.
- setNormalVersion(String) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Deprecated.forRemoval since 0.10.0
- setPatchVersion(long) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the patch version.
- setPreReleaseVersion(String) - Method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, consider using
Version.nextPreReleaseVersion(String...) - setPreReleaseVersion(String...) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the pre-release version.
- setVersionCore(long) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the major version; the minor and patch versions are assigned 0.
- setVersionCore(long, long) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets the major and minor versions; the patch version is assigned 0.
- setVersionCore(long, long, long) - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Sets major, minor and patch versions.
- Stream<E> - Class in com.github.zafarkhaja.semver.util
-
A simple stream class used to represent a stream of characters or tokens.
- Stream(E[]) - Constructor for class com.github.zafarkhaja.semver.util.Stream
-
Constructs a stream containing the specified elements.
- Stream.ElementType<E> - Interface in com.github.zafarkhaja.semver.util
-
The
ElementTypeinterface represents types of the elements held by this stream and can be used for stream filtering.
T
- 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
VersiontoBuilder. - toStableVersion() - Method in class com.github.zafarkhaja.semver.Version
-
Obtains the next
Versionby dropping the pre-release version. - toString() - Method in exception class com.github.zafarkhaja.semver.expr.LexerException
-
Returns the string representation of this exception.
- toString() - Method in exception class 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 class com.github.zafarkhaja.semver.ParseException
-
Returns the string representation of this exception.
- toString() - Method in exception class 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 class 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
Versioninstance 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
Versioninstance by parsing the specified string.
U
- UnexpectedCharacterException - Exception Class in com.github.zafarkhaja.semver
-
Thrown when attempting to consume a character of unexpected types.
- UnexpectedElementException - Exception Class in com.github.zafarkhaja.semver.util
-
Thrown when attempting to consume a stream element of unexpected types.
- UnexpectedTokenException - Exception Class in com.github.zafarkhaja.semver.expr
-
Thrown when a token of unexpected types is encountered during the parsing.
- unsetBuildMetadata() - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Unsets the build metadata.
- unsetPreReleaseVersion() - Method in class com.github.zafarkhaja.semver.Version.Builder
-
Unsets the pre-release version.
V
- valueOf(String) - Static method in class com.github.zafarkhaja.semver.Version
-
Deprecated.forRemoval since 0.10.0, use
Version.parse(String) - Version - Class in com.github.zafarkhaja.semver
-
A representation of version as defined by the SemVer Specification.
- Version.Builder - Class in com.github.zafarkhaja.semver
-
A mutable builder for the immutable
Versionclass
W
- withBuildMetadata(String...) - Method in class com.github.zafarkhaja.semver.Version
-
Obtains a new
Versionwith the specified build identifiers. - withoutBuildMetadata() - Method in class com.github.zafarkhaja.semver.Version
-
Obtains a (new)
Versionwithout build metadata.
All Classes and Interfaces|All Packages|Serialized Form
Version.compareTo(Version)