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 |
hasNext() |
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 index) |
char[] |
peekChars() |
int |
position() |
void |
position(int n)
Set the iterator position
|
int |
remaining() |
void |
remove() |
CodepointIteratorRestricted |
restrict(ICodepointFilter aFilter) |
CodepointIteratorRestricted |
restrict(ICodepointFilter aFilter,
boolean bScanning) |
CodepointIteratorRestricted |
restrict(ICodepointFilter aFilter,
boolean bScanning,
boolean bInvert) |
protected AbstractCodepointIterator()
protected AbstractCodepointIterator(int nPosition,
int nLimit)
protected abstract char get()
protected abstract char get(int nIndex)
nIndex - Index to be retrievedpublic boolean hasNext()
hasNext in interface ICodepointIteratorhasNext in interface Iterator<Codepoint>true if there are codepoints remaining@CheckForSigned public int lastPosition()
lastPosition in interface ICodepointIterator@Nullable public char[] nextChars()
nextChars in interface ICodepointIterator@Nullable public char[] peekChars()
peekChars in interface ICodepointIterator@Nullable public Codepoint next()
next in interface ICodepointIteratornext in interface Iterator<Codepoint>@Nullable public Codepoint peek()
peek in interface ICodepointIterator@Nullable public Codepoint peek(int index)
peek in interface ICodepointIteratorindex - 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@UnsupportedOperation public void remove()
@Nonnull public CodepointIteratorRestricted restrict(@Nonnull ICodepointFilter aFilter)
restrict in interface ICodepointIterator@Nonnull public CodepointIteratorRestricted restrict(@Nonnull ICodepointFilter aFilter, boolean bScanning)
restrict in interface ICodepointIterator@Nonnull public CodepointIteratorRestricted restrict(@Nonnull ICodepointFilter aFilter, boolean bScanning, boolean bInvert)
restrict in interface ICodepointIteratorCopyright © 2014–2015 Philip Helger. All rights reserved.