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

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

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

Comparator that uses the first element as base.

See Also:
Serialized Form
Rating red

Constructor Summary
Pair.FirstComparator()
           
 
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.FirstComparator

public Pair.FirstComparator()
Method Detail

compare

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

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