public class UTF16CollationIterator extends CollationIterator
| Modifier and Type | Field and Description |
|---|---|
protected int |
limit |
protected int |
pos |
protected CharSequence |
seq |
protected int |
start |
data, NO_CP_AND_CE32, trie| Constructor and Description |
|---|
UTF16CollationIterator(CollationData d)
Partial constructor, see
CollationIterator.CollationIterator(CollationData). |
UTF16CollationIterator(CollationData d,
boolean numeric,
CharSequence s,
int p) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
backwardNumCodePoints(int num) |
boolean |
equals(Object other) |
protected void |
forwardNumCodePoints(int num) |
int |
getOffset() |
protected char |
handleGetTrailSurrogate()
Called when handleNextCE32() returns a LEAD_SURROGATE_TAG for a lead surrogate code unit.
|
protected long |
handleNextCE32()
Returns the next code point and its local CE32 value.
|
int |
hashCode() |
int |
nextCodePoint()
Returns the next code point (with post-increment).
|
int |
previousCodePoint()
Returns the previous code point (with pre-decrement).
|
void |
resetToOffset(int newOffset)
Resets the iterator state and sets the position to the specified offset.
|
void |
setText(boolean numeric,
CharSequence s,
int p) |
appendCEsFromCE32, clearCEsIfNoneRemaining, fetchCEs, forbidSurrogateCodePoints, getCE, getCE32FromBuilderData, getCEs, getCEsLength, getDataCE32, isLeadSurrogate, isTrailSurrogate, makeCodePointAndCE32Pair, nextCE, previousCE, reset, resetprotected CharSequence seq
protected int start
protected int pos
protected int limit
public UTF16CollationIterator(CollationData d)
CollationIterator.CollationIterator(CollationData).public UTF16CollationIterator(CollationData d, boolean numeric, CharSequence s, int p)
public boolean equals(Object other)
equals in class CollationIteratorpublic int hashCode()
hashCode in class CollationIteratorpublic void resetToOffset(int newOffset)
CollationIteratorresetToOffset in class CollationIteratorpublic int getOffset()
getOffset in class CollationIteratorpublic void setText(boolean numeric,
CharSequence s,
int p)
public int nextCodePoint()
CollationIteratornextCodePoint in class CollationIteratorpublic int previousCodePoint()
CollationIteratorpreviousCodePoint in class CollationIteratorprotected long handleNextCE32()
CollationIteratorhandleNextCE32 in class CollationIteratorprotected char handleGetTrailSurrogate()
CollationIteratorhandleGetTrailSurrogate in class CollationIteratorprotected void forwardNumCodePoints(int num)
forwardNumCodePoints in class CollationIteratorprotected void backwardNumCodePoints(int num)
backwardNumCodePoints in class CollationIterator