public abstract class ChainComparator extends Object implements Comparator<Object>
Constructor and Description |
---|
ChainComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
int |
intResolve(int i1,
int i2)
Return comparison result
|
ChainComparator |
setNext(ChainComparator next)
Set next Comparator.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public ChainComparator setNext(ChainComparator next)
next
- the next Comparatorpublic final int intResolve(int i1, int i2)
i1
- the target integer value 1i2
- the target integer value 2public int compare(Object o1, Object o2)
compare
in interface Comparator<Object>