Package net.sf.saxon.sort
Class LowercaseFirstComparer
java.lang.Object
net.sf.saxon.sort.LowercaseFirstComparer
- All Implemented Interfaces:
Serializable,Comparator
A Comparer used for comparing keys
- Author:
- Michael H. Kay
- 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
-
LowercaseFirstComparer
-
-
Method Details
-
compare
Compare two string objects: case is irrelevant, unless the strings are equal ignoring case, in which case lowercase comes first.- 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
-