org.opengts.util
Class ListTools.ReverseOrderComparator<T>

java.lang.Object
  extended by org.opengts.util.ListTools.ReverseOrderComparator<T>
All Implemented Interfaces:
java.util.Comparator<T>
Enclosing class:
ListTools

public static class ListTools.ReverseOrderComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>

ReverseOrderComparator class which reserses the sort order of other Comparators


Constructor Summary
ListTools.ReverseOrderComparator(java.util.Comparator<? super T> comp)
           
 
Method Summary
 int compare(T o1, T o2)
           
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListTools.ReverseOrderComparator

public ListTools.ReverseOrderComparator(java.util.Comparator<? super T> comp)
Method Detail

compare

public int compare(T o1,
                   T o2)
Specified by:
compare in interface java.util.Comparator<T>

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator<T>
Overrides:
equals in class java.lang.Object