org.jtools.compare
Class PropertyComparator<T>
java.lang.Object
org.jtools.compare.PropertyComparator<T>
- All Implemented Interfaces:
- Comparator<T>
public class PropertyComparator<T>
- extends Object
- implements Comparator<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyComparator
public PropertyComparator(Method method)
PropertyComparator
public PropertyComparator(Class<T> clazz,
String property)
throws NoSuchMethodException
- Throws:
NoSuchMethodException
compare
public int compare(T arg0,
T arg1)
- Specified by:
compare
in interface Comparator<T>
© 2000-2006, JTools.org.