Top Constructors Methods
io.smallrye.common.version

pack-priv final Class BasicVersionScheme

extends AbstractVersionScheme<BasicVersionIterator>
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected int
compare(final BasicVersionIterator
the iterator for the first version (must not be null)
i1
,
final BasicVersionIterator
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 BasicVersionIterator
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

BasicVersionSchemeback to summary
pack-priv BasicVersionScheme()

Method Detail

compareback to summary
protected int compare(final BasicVersionIterator i1, final BasicVersionIterator 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:BasicVersionIterator

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

i2:BasicVersionIterator

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 BasicVersionIterator 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:BasicVersionIterator

the version iterator (not null)