jlibs.core.util
Class ChainedComparator<T>

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

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

Author:
Santhosh Kumar T

Constructor Summary
ChainedComparator(Comparator<T>... delegates)
           
 
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

ChainedComparator

public ChainedComparator(Comparator<T>... delegates)
Method Detail

compare

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


Copyright © 2018. All rights reserved.