se.lth.cs.nlp.nlputils.core
Class NegatedComparator<T>

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.core.NegatedComparator<T>
All Implemented Interfaces:
Comparator<T>

public class NegatedComparator<T>
extends Object
implements Comparator<T>

A reversal of a given comparator.

Author:
Richard Johansson (richard@cs.lth.se)

Constructor Summary
NegatedComparator(Comparator<T> comparator)
           
 
Method Summary
 int compare(T t1, T t2)
           
 
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

NegatedComparator

public NegatedComparator(Comparator<T> comparator)
Method Detail

compare

public int compare(T t1,
                   T t2)
Specified by:
compare in interface Comparator<T>