JTools

org.jtools.compare
Class PropertyComparator<T>

java.lang.Object
  extended by org.jtools.compare.PropertyComparator<T>
All Implemented Interfaces:
Comparator<T>

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


Constructor Summary
PropertyComparator(Class<T> clazz, String property)
           
PropertyComparator(Method method)
           
 
Method Summary
 int compare(T arg0, T arg1)
           
 
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

PropertyComparator

public PropertyComparator(Method method)

PropertyComparator

public PropertyComparator(Class<T> clazz,
                          String property)
                   throws NoSuchMethodException
Throws:
NoSuchMethodException
Method Detail

compare

public int compare(T arg0,
                   T arg1)
Specified by:
compare in interface Comparator<T>

JTools

© 2000-2006, JTools.org.