Class CollationMatchKey

java.lang.Object
net.sf.saxon.expr.sort.CollationMatchKey
All Implemented Interfaces:
Comparable, AtomicMatchKey

public class CollationMatchKey extends Object implements AtomicMatchKey, Comparable
A match key for comparing strings under a collation. Wraps a Java CollationKey obtained from the collation.
  • Constructor Details

    • CollationMatchKey

      public CollationMatchKey(CollationKey key)
  • Method Details

    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • asAtomic

      public AtomicValue asAtomic()
      Get an atomic value that encapsulates this match key. Needed to support the collation-key() function.
      Specified by:
      asAtomic in interface AtomicMatchKey
      Returns:
      an atomic value that encapsulates this match key