JavaScript is disabled on your browser.
Skip navigation links
gnu.xquery.util

Class 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

      Fields
      Modifier and Type Field and Description
      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

      Constructors
      Constructor and Description
      NamedCollator ()
    • Method Summary

      All Methods
      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)
      • 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
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • 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

      • getName

        public java.lang.String getName()
      • 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
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /