jlibs.core.util
Class ReverseComparator<T>

java.lang.Object
  extended by jlibs.core.util.ReverseComparator<T>
All Implemented Interfaces:
Comparator<T>

public class ReverseComparator<T>
extends Object
implements Comparator<T>

Author:
Santhosh Kumar T

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

ReverseComparator

public ReverseComparator(Comparator<T> delegate)
Method Detail

compare

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


Copyright © 2018. All rights reserved.