Top Fields Constructors Methods
org.wildfly.common.iteration

pack-priv final Class CharArrayIterator

extends CodePointIterator
Class Inheritance
Imports
java.util.NoSuchElementException

Field Summary

Modifier and TypeField and Description
private final char[]
private int
private final int
private final int
private int
Inherited from org.wildfly.common.iteration.CodePointIterator:
EMPTY

Constructor Summary

AccessConstructor and Description
pack-priv
CharArrayIterator(final int len, final char[] chars, final int offs)

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
Inherited from org.wildfly.common.iteration.CodePointIterator:
asLatin1asUtf8asUtf8base32Decodebase32Decodebase32Decodebase64Decodebase64Decodebase64DecodecontentEqualscontentEqualsdelimitedBydrainTodrainTodrainTodrainTodrainToStringdrainToStringdrainToStringdrainToStringhexDecodelimitedToofCharsofCharsofCharsofLatin1BytesofLatin1BytesofStringofStringofUtf8BytesofUtf8BytesskipskipAllskipCrLf

Field Detail

charsback to summary
private final char[] chars
idxback to summary
private int idx
lenback to summary
private final int len
offsback to summary
private final int offs
offsetback to summary
private int offset

Constructor Detail

CharArrayIteratorback to summary
pack-priv CharArrayIterator(final int len, final char[] chars, final int offs)

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