net.sf.infrared.web.ui
Class BeanComparator
java.lang.Object
net.sf.infrared.web.ui.BeanComparator
- All Implemented Interfaces:
- Comparator
- public class BeanComparator
- extends Object
- implements Comparator
A simple comparator implementation that enables comparing two
bean instances based on a specified property.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanComparator
public BeanComparator(String methodName,
boolean ascending)
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare in interface Comparator
setAscending
public void setAscending(boolean ascending)