public abstract class AbstractCodepointIterator extends Object implements ICodepointIterator
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_nLimit |
protected int |
m_nPosition |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCodepointIterator() |
protected |
AbstractCodepointIterator(int nPosition,
int nLimit) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract char |
get() |
protected abstract char |
get(int nIndex) |
boolean |
isHigh(int index)
Returns true if the char at the specified index is a high surrogate
|
boolean |
isLow(int index)
Returns true if the char at the specified index is a low surrogate
|
int |
lastPosition() |
int |
limit() |
Codepoint |
next() |
char[] |
nextChars() |
Codepoint |
peek() |
Codepoint |
peek(int nIndex) |
char[] |
peekChars() |
int |
position() |
void |
position(int n)
Set the iterator position
|
int |
remaining() |
CodepointIteratorRestricted |
restrict(IntPredicate aFilter,
boolean bScanning,
boolean bInvert) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, restrict, restrictforEachRemaining, removeprotected AbstractCodepointIterator()
protected AbstractCodepointIterator(int nPosition,
int nLimit)
protected abstract char get()
protected abstract char get(int nIndex)
nIndex - Index to be retrieved@CheckForSigned public int lastPosition()
lastPosition in interface ICodepointIterator@Nullable public char[] nextChars()
nextChars in interface ICodepointIterator@Nullable public char[] peekChars()
peekChars in interface ICodepointIterator@Nonnull public Codepoint next()
next in interface ICodepointIteratornext in interface Iterator<Codepoint>@Nullable public Codepoint peek()
peek in interface ICodepointIterator@Nullable public Codepoint peek(int nIndex)
peek in interface ICodepointIteratornIndex - indexpublic void position(@Nonnegative int n)
ICodepointIteratorposition in interface ICodepointIteratorn - new position@Nonnegative public int position()
position in interface ICodepointIterator@Nonnegative public int limit()
limit in interface ICodepointIterator@Nonnegative public int remaining()
remaining in interface ICodepointIteratorpublic boolean isHigh(@Nonnegative int index)
isHigh in interface ICodepointIteratorindex - indextrue if the char at the specified index is a high
surrogatepublic boolean isLow(@Nonnegative int index)
isLow in interface ICodepointIteratorindex - indextrue if the char at the specified index is a low
surrogate@Nonnull public CodepointIteratorRestricted restrict(@Nonnull IntPredicate aFilter, boolean bScanning, boolean bInvert)
restrict in interface ICodepointIteratorCopyright © 2014–2019 Philip Helger. All rights reserved.