FileDocCategorySizeDatePackage
ReverseComparator.javaAPI DocApache Tomcat 6.0.141484Fri Jul 20 04:20:34 BST 2007org.apache.catalina.manager.util

ReverseComparator

public class ReverseComparator extends Object implements Comparator
Comparator which reverse the sort order
author
Cédrik LIME

Fields Summary
protected Comparator
comparator
Constructors Summary
public ReverseComparator(Comparator comparator)

        super();
        this.comparator = comparator;
    
Methods Summary
public intcompare(java.lang.Object o1, java.lang.Object o2)

        int returnValue = comparator.compare(o1, o2);
        return (- returnValue);