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