com.saxonica.expr
Class EquivalenceComparer
java.lang.Object
net.sf.saxon.expr.sort.AtomicSortComparer
com.saxonica.expr.EquivalenceComparer
- All Implemented Interfaces:
- Serializable, AtomicComparer
public class EquivalenceComparer
- extends AtomicSortComparer
A comparer that compares atomic values for equality, with the properties:
- non-comparable types compare false
- NaN compares equal to NaN
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquivalenceComparer
protected EquivalenceComparer(StringCollator collator,
int itemType,
XPathContext context)
compareNonComparables
protected int compareNonComparables(AtomicValue a,
AtomicValue b)
- Compare two values that are known to be non-comparable. In the base class this method
throws a ClassCastException. In this subclass it is overridden to return
Value.INDETERMINATE_ORDERING
- Overrides:
compareNonComparables
in class AtomicSortComparer
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.