Class Comparer
java.lang.Object
com.icl.saxon.sort.Comparer
- Direct Known Subclasses:
DescendingComparer, DoubleComparer, LowercaseFirstComparer, TextComparer, UppercaseFirstComparer
A Comparer used for comparing keys
- Author:
- Michael H. Kay
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Comparer
public Comparer()
-
-
Method Details
-
compare
Compare two objects.- 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
-
setDataType
-
setOrder
Set order. The comparer has the option of returning a different comparer
-