public class LowercaseFirstComparer extends Object implements Comparator, Serializable
Constructor and Description |
---|
LowercaseFirstComparer(Comparator base) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object a,
Object b)
Compare two string objects: case is irrelevant, unless the strings are equal ignoring
case, in which case lowercase comes first.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public LowercaseFirstComparer(Comparator base)
public int compare(Object a, Object b)
compare
in interface Comparator
ClassCastException
- if the objects are of the wrong type for this Comparer