Top Fields Constructors Methods
io.smallrye.common.version

pack-priv final Class BasicVersionIterator

extends AbstractVersionIterator
Class Inheritance
Imports
java.util.NoSuchElementException, io.smallrye.common.constraint.Assert

Field Summary

Inherited from io.smallrye.common.version.AbstractVersionIterator:
cookiestring

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
public boolean
hasNext()

Overrides io.smallrye.common.version.AbstractVersionIterator.hasNext.

Implements io.smallrye.common.version.VersionIterator.hasNext.

A basic implementation of VersionIterator#hasNext() which returns true if there are more characters after the current token.

public void
next()

Overrides io.smallrye.common.version.AbstractVersionIterator.next.

Implements io.smallrye.common.version.VersionIterator.next.

A basic implementation of VersionIterator#next() which uses the methods on this class to establish the next iteration token.

pack-priv void
skipTrailer(long mark)

Inherited from io.smallrye.common.version.AbstractVersionIterator:
appendAlphaPartToappendNumberPartToappendPartTochangeTypecompareAlphaPartcompareAlphaPartcompareNumberPartcompareNumberPartcompareNumberPartcompareNumberPartcookieToEndIndexcookieToExtraBitscookieToStartIndexcookieTypecurrentTypegetAlphaPartgetEndIndexgetExtraBitsgetNumberPartAsIntgetNumberPartAsLonggetNumberPartAsStringgetSeparatorCodePointgetStartIndexinsertEmptyAlphainsertEmptyNumberinsertEmptySeparatorisAlphaCodePointisAlphaPartisEmptySeparatorisNonEmptySeparatorisNumberPartisPartisSeparatorisSeparatorCodePointlengthmakeCookiemarknumericCodePointValueresetsetCurrentTokentoString

Constructor Detail

BasicVersionIteratorback to summary
pack-priv BasicVersionIterator(final String string)

Method Detail

getSeparatorMagnitudeback to summary
pack-priv int getSeparatorMagnitude()
hasNextback to summary
public boolean hasNext()

Overrides io.smallrye.common.version.AbstractVersionIterator.hasNext.

Implements io.smallrye.common.version.VersionIterator.hasNext.

Doc from io.smallrye.common.version.AbstractVersionIterator.hasNext.

A basic implementation of VersionIterator#hasNext() which returns true if there are more characters after the current token. Subclasses should generally override this basic behavior but may delegate to this implementation for convenience.

Returns:boolean

true if there are more characters after the current token, false otherwise

nextback to summary
public void next() throws NoSuchElementException, VersionSyntaxException

Overrides io.smallrye.common.version.AbstractVersionIterator.next.

Implements io.smallrye.common.version.VersionIterator.next.

Doc from io.smallrye.common.version.AbstractVersionIterator.next.

A basic implementation of VersionIterator#next() which uses the methods on this class to establish the next iteration token. This implementation consumes leading zeros from numeric parts but otherwise does not perform any transformations.

Exceptions
NoSuchElementException:
if there are no tokens left to iterate
VersionSyntaxException:
if the version string is unparseable due to syntax error
skipTrailerback to summary
pack-priv void skipTrailer(long mark)