gnu.xquery.util
Class NamedCollator
java.lang.Object
java.text.Collator
gnu.xquery.util.NamedCollator
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, java.util.Comparator<java.lang.Object>
public class NamedCollator
- extends java.text.Collator
- implements java.io.Externalizable
- See Also:
- Serialized Form
Fields inherited from class java.text.Collator |
CANONICAL_DECOMPOSITION, FULL_DECOMPOSITION, IDENTICAL, NO_DECOMPOSITION, PRIMARY, SECONDARY, TERTIARY |
Methods inherited from class java.text.Collator |
clone, compare, equals, equals, getAvailableLocales, getDecomposition, getInstance, getInstance, getStrength, setDecomposition, setStrength |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
UNICODE_CODEPOINT_COLLATION
public static final java.lang.String UNICODE_CODEPOINT_COLLATION
- See Also:
- Constant Field Values
codepointCollation
public static final NamedCollator codepointCollation
NamedCollator
public NamedCollator()
make
public static NamedCollator make(java.lang.String name)
getName
public java.lang.String getName()
find
public static NamedCollator find(java.lang.String name)
resolve
public void resolve()
codepointCompare
public static int codepointCompare(java.lang.String str1,
java.lang.String str2)
- Compares two strings lexicographically by codepoint.
Same as
String.compareTo
but handles surrogate characters.
- Returns:
- -1, 0, or 1 depending on their relative order.
compare
public int compare(java.lang.String str1,
java.lang.String str2)
- Specified by:
compare
in class java.text.Collator
getCollationKey
public java.text.CollationKey getCollationKey(java.lang.String source)
- Specified by:
getCollationKey
in class java.text.Collator
hashCode
public int hashCode()
- Specified by:
hashCode
in class java.text.Collator
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException