public class NullComparator extends Object implements Comparator
| Constructor and Description |
|---|
NullComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2)
Compares two given objects.
|
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 int compare(Object o1, Object o2) throws ClassCastException
Comparable and o2 is not of
the same type may result in ClassCastException.compare in interface Comparatoro1 - object to compareo2 - object to compareClassCastException - if o1 is an instance of Comparable and o2 is not of the same typeCopyright © 2002-2018 Atlassian. All Rights Reserved.