Top Fields Constructors Methods
org.wildfly.common.iteration

pack-priv final Class SkippingCodePointIterator

extends CodePointIterator
Class Inheritance
Imports
java.util.NoSuchElementException, java.util.function.IntPredicate

Field Summary

Modifier and TypeField and Description
private final CodePointIterator
private final IntPredicate
Inherited from org.wildfly.common.iteration.CodePointIterator:
EMPTY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
getIndex()

Implements abstract org.wildfly.common.iteration.CodePointIterator.getIndex.

Implements org.wildfly.common.iteration.IndexIterator.getIndex.

Get the current offset, by code point.
public boolean
hasNext()

Implements abstract org.wildfly.common.iteration.CodePointIterator.hasNext.

Implements org.wildfly.common.iteration.BiDirIntIterator.hasNext.

Determine if there are more code points after the current code point.
public boolean
hasPrevious()

Implements abstract org.wildfly.common.iteration.CodePointIterator.hasPrevious.

Implements org.wildfly.common.iteration.BiDirIntIterator.hasPrevious.

Determine if there are more code points before the current code point.
public int
public int
peekNext()

Implements abstract org.wildfly.common.iteration.CodePointIterator.peekNext.

Implements org.wildfly.common.iteration.BiDirIntIterator.peekNext.

Peek at the next code point without advancing.
public int
peekPrevious()

Implements abstract org.wildfly.common.iteration.CodePointIterator.peekPrevious.

Implements org.wildfly.common.iteration.BiDirIntIterator.peekPrevious.

Peek at the previous code point without moving backwards.
public int
private int
seekNext(int next)

private int
seekPrev(int prev)

private boolean
skip(int c)

Inherited from org.wildfly.common.iteration.CodePointIterator:
asLatin1asUtf8asUtf8base32Decodebase32Decodebase32Decodebase64Decodebase64Decodebase64DecodecontentEqualscontentEqualsdelimitedBydrainTodrainTodrainTodrainTodrainToStringdrainToStringdrainToStringdrainToStringhexDecodelimitedToofCharsofCharsofCharsofLatin1BytesofLatin1BytesofStringofStringofUtf8BytesofUtf8BytesskipskipAllskipCrLf

Field Detail

iterback to summary
private final CodePointIterator iter
predicateback to summary
private final IntPredicate predicate

Constructor Detail

SkippingCodePointIteratorback to summary
pack-priv SkippingCodePointIterator(final CodePointIterator iter, final IntPredicate predicate)

Method Detail

getIndexback to summary
public long getIndex()

Implements abstract org.wildfly.common.iteration.CodePointIterator.getIndex.

Implements org.wildfly.common.iteration.IndexIterator.getIndex.

Doc from org.wildfly.common.iteration.CodePointIterator.getIndex.

Get the current offset, by code point.

Returns:long

the code point offset

hasNextback to summary
public boolean hasNext()

Implements abstract org.wildfly.common.iteration.CodePointIterator.hasNext.

Implements org.wildfly.common.iteration.BiDirIntIterator.hasNext.

Doc from org.wildfly.common.iteration.CodePointIterator.hasNext.

Determine if there are more code points after the current code point.

Returns:boolean

true if there are more code points, false otherwise

hasPreviousback to summary
public boolean hasPrevious()

Implements abstract org.wildfly.common.iteration.CodePointIterator.hasPrevious.

Implements org.wildfly.common.iteration.BiDirIntIterator.hasPrevious.

Doc from org.wildfly.common.iteration.CodePointIterator.hasPrevious.

Determine if there are more code points before the current code point.

Returns:boolean

true if there are more code points, false otherwise

nextback to summary
public int next()

Implements abstract org.wildfly.common.iteration.CodePointIterator.next.

Implements org.wildfly.common.iteration.BiDirIntIterator.next.

Doc from org.wildfly.common.iteration.CodePointIterator.next.

Get the next code point.

Returns:int

the next code point

peekNextback to summary
public int peekNext() throws NoSuchElementException

Implements abstract org.wildfly.common.iteration.CodePointIterator.peekNext.

Implements org.wildfly.common.iteration.BiDirIntIterator.peekNext.

Doc from org.wildfly.common.iteration.CodePointIterator.peekNext.

Peek at the next code point without advancing.

Returns:int

the next code point

Exceptions
NoSuchElementException:
if hasNext() returns false
peekPreviousback to summary
public int peekPrevious() throws NoSuchElementException

Implements abstract org.wildfly.common.iteration.CodePointIterator.peekPrevious.

Implements org.wildfly.common.iteration.BiDirIntIterator.peekPrevious.

Doc from org.wildfly.common.iteration.CodePointIterator.peekPrevious.

Peek at the previous code point without moving backwards.

Returns:int

the previous code point

Exceptions
NoSuchElementException:
if hasPrevious() returns false
previousback to summary
public int previous()

Implements abstract org.wildfly.common.iteration.CodePointIterator.previous.

Implements org.wildfly.common.iteration.BiDirIntIterator.previous.

Doc from org.wildfly.common.iteration.CodePointIterator.previous.

Get the previous code point.

Returns:int

the previous code point

seekNextback to summary
private int seekNext(int next) throws NoSuchElementException
seekPrevback to summary
private int seekPrev(int prev) throws NoSuchElementException
skipback to summary
private boolean skip(int c)