de.lmu.ifi.dbs.elki.utilities.pairs
Class PairUtil.CompareNaturalSecond<FIRST,SECOND extends Comparable<? super SECOND>>
java.lang.Object
de.lmu.ifi.dbs.elki.utilities.pairs.PairUtil.CompareNaturalSecond<FIRST,SECOND>
- Type Parameters:
FIRST
- First typeSECOND
- Second type
- All Implemented Interfaces:
- Comparator<Pair<? extends FIRST,? extends SECOND>>
- Enclosing class:
- PairUtil
public static final class PairUtil.CompareNaturalSecond<FIRST,SECOND extends Comparable<? super SECOND>>
- extends Object
- implements Comparator<Pair<? extends FIRST,? extends SECOND>>
Class to do a natural comparison on this class' second component.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PairUtil.CompareNaturalSecond
public PairUtil.CompareNaturalSecond()
compare
public int compare(Pair<? extends FIRST,? extends SECOND> o1,
Pair<? extends FIRST,? extends SECOND> o2)
- Compare by second components natural ordering
- Specified by:
compare
in interface Comparator<Pair<? extends FIRST,? extends SECOND extends Comparable<? super SECOND>>>
- Parameters:
o1
- First objecto2
- Second object