Package net.sf.saxon.sort
Class DescendingComparer
java.lang.Object
net.sf.saxon.sort.DescendingComparer
- All Implemented Interfaces:
Serializable,Comparator
A Comparer used for comparing descending keys. This simply returns the inverse of the result
delivered by the base comparer.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DescendingComparer
-
-
Method Details
-
compare
Compare two objects.- Specified by:
comparein interfaceComparator- Returns:
- invalid input: '<'0 if ainvalid input: '<'b, 0 if a=b, >0 if a>b
- Throws:
ClassCastException- if the objects are of the wrong type for this Comparer
-