FIRST
- First typeSECOND
- Second typepublic static final class PairUtil.CompareNaturalSwapped<FIRST extends Comparable<? super FIRST>,SECOND extends Comparable<? super SECOND>> extends Object implements Comparator<Pair<? extends FIRST,? extends SECOND>>
Constructor and Description |
---|
PairUtil.CompareNaturalSwapped() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Pair<? extends FIRST,? extends SECOND> o1,
Pair<? extends FIRST,? extends SECOND> o2)
Compare by second component, using the ComparableSwapped interface.
|
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 Comparable<? super FIRST>,? extends SECOND extends Comparable<? super SECOND>>>
o1
- First objecto2
- Second object