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(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)
Compares this instance with the specified object and indicates if they
are equal.
|
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()
Returns an integer hash code for this object.
|
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(CollationData).public UTF16CollationIterator(CollationData d, boolean numeric, CharSequence s, int p)
public boolean equals(Object other)
Objecto must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true only if this ==
o. See Writing a correct
equals method
if you intend implementing your own equals method.
The general contract for the equals and Object.hashCode() methods is that if equals returns true for
any two objects, then hashCode() must return the same value for
these objects. This means that subclasses of Object usually
override either both methods or neither of them.
equals in class CollationIteratorother - the object to compare this instance with.true if the specified object is equal to this Object; false otherwise.Object.hashCode()public int hashCode()
ObjectObject.equals(java.lang.Object) returns true must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode method
if you intend implementing your own hashCode method.
hashCode in class ObjectObject.equals(java.lang.Object)public 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