public class UppercaseFirstComparer extends Object implements Comparator, Serializable
Constructor and Description |
---|
UppercaseFirstComparer(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 uppercase 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 UppercaseFirstComparer(Comparator base)
public int compare(Object a, Object b)
compare
in interface Comparator
ClassCastException
- if the objects do not implement the CharSequence interface