Package net.sf.saxon.expr.sort
Class CollationMatchKey
- java.lang.Object
-
- net.sf.saxon.expr.sort.CollationMatchKey
-
- All Implemented Interfaces:
java.lang.Comparable<CollationMatchKey>,AtomicMatchKey
public class CollationMatchKey extends java.lang.Object implements AtomicMatchKey, java.lang.Comparable<CollationMatchKey>
A match key for comparing strings under a collation. Wraps a Java CollationKey obtained from the collation.
-
-
Constructor Summary
Constructors Constructor Description CollationMatchKey(java.text.CollationKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicValueasAtomic()Get an atomic value that encapsulates this match key.intcompareTo(CollationMatchKey o)booleanequals(java.lang.Object o)inthashCode()
-
-
-
Method Detail
-
compareTo
public int compareTo(CollationMatchKey o)
- Specified by:
compareToin interfacejava.lang.Comparable<CollationMatchKey>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
asAtomic
public AtomicValue asAtomic()
Get an atomic value that encapsulates this match key. Needed to support the collation-key() function.- Specified by:
asAtomicin interfaceAtomicMatchKey- Returns:
- an atomic value that encapsulates this match key
-
-