de.cau.cs.kieler.core.util
Class Pair.SecondComparator<F,S extends Comparable<S>>

java.lang.Object
  extended by de.cau.cs.kieler.core.util.Pair.SecondComparator<F,S>
All Implemented Interfaces:
Serializable, Comparator<Pair<F,S>>
Enclosing class:
Pair<F,S>

public static class Pair.SecondComparator<F,S extends Comparable<S>>
extends Object
implements Comparator<Pair<F,S>>, Serializable

Comparator that uses the second element as base.

See Also:
Serialized Form
Rating red

Constructor Summary
Pair.SecondComparator()
           
 
Method Summary
 int compare(Pair<F,S> o1, Pair<F,S> o2)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

Pair.SecondComparator

public Pair.SecondComparator()
Method Detail

compare

public int compare(Pair<F,S> o1,
                   Pair<F,S> o2)

Specified by:
compare in interface Comparator<Pair<F,S extends Comparable<S>>>