se.lth.cs.nlp.nlputils.core
Class NegatedComparator<T>
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NegatedComparator
public NegatedComparator(Comparator<T> comparator)
compare
public int compare(T t1,
T t2)
- Specified by:
compare
in interface Comparator<T>