public final class CollationSettings extends SharedObject
SharedObject.Reference<T extends SharedObject>| Modifier and Type | Field and Description |
|---|---|
static int |
BACKWARD_SECONDARY
Options bit 11: Compare secondary weights backwards.
|
static int |
CASE_FIRST
Options bit 9: Keep the case bits in the tertiary weight (they trump other tertiary values)
unless case level is on (when they are *moved* into the separate case level).
|
static int |
CASE_FIRST_AND_UPPER_MASK
Options bit mask for caseFirst and upperFirst, before shifting.
|
static int |
CASE_LEVEL
Options bit 10: Insert the case level between the secondary and tertiary levels.
|
static int |
CHECK_FCD
Options bit 0: Perform the FCD check on the input text and deliver normalized text.
|
int |
fastLatinOptions
Options for CollationFastLatin.
|
char[] |
fastLatinPrimaries |
static int |
NUMERIC
Options bit 1: Numeric collation.
|
int |
options
CHECK_FCD etc.
|
int[] |
reorderCodes
Array of reorder codes; ignored if length == 0.
|
byte[] |
reorderTable
256-byte table for reordering permutation of primary lead bytes; null if no reordering.
|
long |
variableTop
Variable-top primary weight.
|
| Modifier and Type | Method and Description |
|---|---|
CollationSettings |
clone()
Initializes refCount to 0.
|
void |
copyReorderingFrom(CollationSettings other) |
boolean |
dontCheckFCD() |
boolean |
equals(Object other)
Compares this instance with the specified object and indicates if they
are equal.
|
boolean |
getAlternateHandling() |
int |
getCaseFirst() |
boolean |
getFlag(int bit) |
int |
getMaxVariable() |
int |
getStrength() |
int |
hashCode()
Returns an integer hash code for this object.
|
boolean |
hasReordering() |
boolean |
isNumeric() |
long |
reorder(long p) |
void |
resetReordering() |
void |
setAlternateHandlingDefault(int defaultOptions) |
void |
setAlternateHandlingShifted(boolean value) |
void |
setCaseFirst(int value) |
void |
setCaseFirstDefault(int defaultOptions) |
void |
setFlag(int bit,
boolean value)
Sets the options bit for an on/off attribute.
|
void |
setFlagDefault(int bit,
int defaultOptions) |
void |
setMaxVariable(int value,
int defaultOptions) |
void |
setReordering(CollationData data,
int[] codes) |
void |
setStrength(int value) |
void |
setStrengthDefault(int defaultOptions) |
addRef, deleteIfZeroRefCount, getRefCount, removeRefpublic static final int CHECK_FCD
public static final int NUMERIC
public static final int CASE_FIRST
public static final int CASE_FIRST_AND_UPPER_MASK
public static final int CASE_LEVEL
public static final int BACKWARD_SECONDARY
public int options
public long variableTop
public byte[] reorderTable
public int[] reorderCodes
public int fastLatinOptions
public char[] fastLatinPrimaries
public CollationSettings clone()
SharedObjectclone in class SharedObjectpublic 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 Objectother - 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 resetReordering()
public void setReordering(CollationData data, int[] codes)
public void copyReorderingFrom(CollationSettings other)
public boolean hasReordering()
public long reorder(long p)
public void setStrength(int value)
public void setStrengthDefault(int defaultOptions)
public int getStrength()
public void setFlag(int bit,
boolean value)
public void setFlagDefault(int bit,
int defaultOptions)
public boolean getFlag(int bit)
public void setCaseFirst(int value)
public void setCaseFirstDefault(int defaultOptions)
public int getCaseFirst()
public void setAlternateHandlingShifted(boolean value)
public void setAlternateHandlingDefault(int defaultOptions)
public boolean getAlternateHandling()
public void setMaxVariable(int value,
int defaultOptions)
public int getMaxVariable()
public boolean dontCheckFCD()
public boolean isNumeric()