gnu.xquery.util
Class NamedCollator

java.lang.Object
  extended by java.text.Collator
      extended by 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

Field Summary
static NamedCollator codepointCollation
           
static java.lang.String UNICODE_CODEPOINT_COLLATION
           
 
Fields inherited from class java.text.Collator
CANONICAL_DECOMPOSITION, FULL_DECOMPOSITION, IDENTICAL, NO_DECOMPOSITION, PRIMARY, SECONDARY, TERTIARY
 
Constructor Summary
NamedCollator()
           
 
Method Summary
 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)
           
 int hashCode()
           
static NamedCollator make(java.lang.String name)
           
 void readExternal(java.io.ObjectInput in)
           
 void resolve()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
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
 

Field Detail

UNICODE_CODEPOINT_COLLATION

public static final java.lang.String UNICODE_CODEPOINT_COLLATION
See Also:
Constant Field Values

codepointCollation

public static final NamedCollator codepointCollation
Constructor Detail

NamedCollator

public NamedCollator()
Method Detail

make

public static NamedCollator make(java.lang.String name)

find

public static NamedCollator find(java.lang.String name)

resolve

public void resolve()

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