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, wait
equals
public int compare(Object o1, Object o2) throws ClassCastException
Comparable
and o2 is not of
the same type may result in ClassCastException
.compare
in interface Comparator
o1
- object to compareo2
- object to compareClassCastException
- if o1 is an instance of Comparable
and o2 is not of the same typeCopyright © 2002-2016 Atlassian. All Rights Reserved.