public class NamedCollator
extends java.text.Collator
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
static NamedCollator |
codepointCollation |
static java.lang.String |
UNICODE_CODEPOINT_COLLATION |
Constructor and Description |
---|
NamedCollator() |
Modifier and Type | Method and Description |
---|---|
static int |
codepointCompare(java.lang.String str1,
java.lang.String str2)
Compares two strings lexicographically by codepoint.
|
int |
compare(java.lang.String str1,
java.lang.String str2) |
static NamedCollator |
find(java.lang.String name) |
java.text.CollationKey |
getCollationKey(java.lang.String source) |
java.lang.String |
getName() |
int |
hashCode() |
static NamedCollator |
make(java.lang.String name) |
void |
readExternal(java.io.ObjectInput in) |
void |
resolve() |
void |
writeExternal(java.io.ObjectOutput out) |
clone, compare, equals, equals, getAvailableLocales, getDecomposition, getInstance, getInstance, getStrength, setDecomposition, setStrength
public static final java.lang.String UNICODE_CODEPOINT_COLLATION
public static final NamedCollator codepointCollation
public static NamedCollator make(java.lang.String name)
public java.lang.String getName()
public static NamedCollator find(java.lang.String name)
public void resolve()
public static int codepointCompare(java.lang.String str1, java.lang.String str2)
String.compareTo
but handles surrogate characters.public int compare(java.lang.String str1, java.lang.String str2)
compare
in class java.text.Collator
public java.text.CollationKey getCollationKey(java.lang.String source)
getCollationKey
in class java.text.Collator
public int hashCode()
hashCode
in class java.text.Collator
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException