Top Constructors Methods
io.smallrye.common.version

pack-priv final Class JpmsVersionScheme

extends AbstractVersionScheme<JpmsVersionIterator>
Class Inheritance
Imports
io.smallrye.common.version.AbstractVersionIterator.TokenType

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected int
compare(JpmsVersionIterator
the iterator for the first version (must not be null)
i1
,
JpmsVersionIterator
the iterator for the second version (must not be null)
i2
)

Implements abstract io.smallrye.common.version.AbstractVersionScheme.compare.

Implements java.util.Comparator.compare.

Compare the current tokens of the two given iterators.

public JpmsVersionIterator
iterate(final String
the version to iterate (must not be null)
version
)

Implements abstract io.smallrye.common.version.AbstractVersionScheme.iterate.

Implements io.smallrye.common.version.VersionScheme.iterate.

Iterate the canonicalized components of the given version according to the rules of this versioning scheme.

Inherited from io.smallrye.common.version.AbstractVersionScheme:
appendCanonicalizedcomparecompareNextcompareZero

Constructor Detail

JpmsVersionSchemeback to summary
pack-priv JpmsVersionScheme()

Method Detail

compareback to summary
protected int compare(JpmsVersionIterator i1, JpmsVersionIterator i2)

Implements abstract io.smallrye.common.version.AbstractVersionScheme.compare.

Implements java.util.Comparator.compare.

Doc from io.smallrye.common.version.AbstractVersionScheme.compare.

Compare the current tokens of the two given iterators. If the tokens are equal, then this method should recurse to compareNext(I, I) (or equivalent) to compare the next tokens.

Parameters
i1:JpmsVersionIterator

the iterator for the first version (must not be null)

i2:JpmsVersionIterator

the iterator for the second version (must not be null)

Returns:int

-1, 0, or 1 if the first version is less than, equal to, or greater than the second version

iterateback to summary
public JpmsVersionIterator iterate(final String version)

Implements abstract io.smallrye.common.version.AbstractVersionScheme.iterate.

Implements io.smallrye.common.version.VersionScheme.iterate.

Doc from io.smallrye.common.version.VersionScheme.iterate.

Iterate the canonicalized components of the given version according to the rules of this versioning scheme.

Parameters
version:String

the version to iterate (must not be null)

Returns:JpmsVersionIterator

the version iterator (not null)