se.unlogic.standardutils.collections
Class MethodComparator<T>

java.lang.Object
  extended by se.unlogic.standardutils.collections.MethodComparator<T>
All Implemented Interfaces:
Comparator<T>

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


Field Summary
protected  Method method
           
protected  Order order
           
 
Constructor Summary
MethodComparator(Class<? extends T> clazz, String methodName, Order order)
           
 
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
 

Field Detail

method

protected Method method

order

protected final Order order
Constructor Detail

MethodComparator

public MethodComparator(Class<? extends T> clazz,
                        String methodName,
                        Order order)
Method Detail

compare

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


Copyright © 2011. All Rights Reserved.