public class NaturalOrderComparator<E> extends Object implements Comparator<E>
| Constructor and Description |
|---|
NaturalOrderComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(E o1,
E o2) |
static boolean |
isSpace(char c)
Indicates whether the given character is whitespace
|
protected String |
stringify(E object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static boolean isSpace(char c)
c - the character to checkpublic int compare(E o1, E o2)
compare in interface Comparator<E>Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.