org.mmbase.util
Class ReverseComparator

java.lang.Object
  extended by org.mmbase.util.ReverseComparator
All Implemented Interfaces:
Comparator<Comparable>

public class ReverseComparator
extends Object
implements Comparator<Comparable>

The comparator which sorts Comparable on the inverse natural order.

Since:
MMBase-1.8.5
Version:
$Id: ReverseComparator.java 41055 2010-02-15 23:59:16Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
ReverseComparator()
           
 
Method Summary
 int compare(Comparable o1, Comparable 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

ReverseComparator

public ReverseComparator()
Method Detail

compare

public int compare(Comparable o1,
                   Comparable o2)
Specified by:
compare in interface Comparator<Comparable>


MMBase 2.0-SNAPSHOT - null