
FIRST - First typeSECOND - Second typepublic static final class PairUtil.CompareNatural<FIRST extends Comparable<? super FIRST>,SECOND extends Comparable<? super SECOND>> extends Object implements Comparator<Pair<? extends FIRST,? extends SECOND>>
| Constructor and Description | 
|---|
PairUtil.CompareNatural()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compare(Pair<? extends FIRST,? extends SECOND> o1,
       Pair<? extends FIRST,? extends SECOND> o2)
Compare by first, then by second. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(Pair<? extends FIRST,? extends SECOND> o1, Pair<? extends FIRST,? extends SECOND> o2)
compare in interface Comparator<Pair<? extends FIRST extends Comparable<? super FIRST>,? extends SECOND extends Comparable<? super SECOND>>>o1 - First objecto2 - Second object