SalesPoint v3.3 API

util
Class ReverseOrderComparator

java.lang.Object
  extended by util.ReverseOrderComparator
All Implemented Interfaces:
Comparator<Object>

public final class ReverseOrderComparator
extends Object
implements Comparator<Object>

A comparator that reverses the order implied by another comparator.

Since:
v3.0
Author:
Steffen Zschaler

Constructor Summary
ReverseOrderComparator(Comparator<Object> cmpOrg)
          Creates new ReverseOrderComparator.
 
Method Summary
 int compare(Object o1, Object o2)
           
 boolean equals(Object o2)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReverseOrderComparator

public ReverseOrderComparator(Comparator<Object> cmpOrg)
Creates new ReverseOrderComparator.

Method Detail

equals

public boolean equals(Object o2)
Specified by:
equals in interface Comparator<Object>
Overrides:
equals in class Object

compare

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

SalesPoint v3.3 API