Package net.sf.saxon.expr.sort
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.
-
-
Field Summary
-
Fields inherited from interface net.sf.saxon.expr.sort.AtomicMatchKey
NaN_MATCH_KEY
-
-
Constructor Summary
Constructors Constructor Description CollationMatchKey(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(Object o)booleanequals(Object o)inthashCode()
-
-
-
Constructor Detail
-
CollationMatchKey
public CollationMatchKey(CollationKey key)
-
-
Method Detail
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin interfaceComparable
-
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
-
-