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