public class BeanSortComparator extends Object implements Comparator
| Modifier | Constructor and Description |
|---|---|
protected |
BeanSortComparator()
Creates a new BeanSortComparator object.
|
|
BeanSortComparator(String propertyName)
The only public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2)
standard compare method
|
protected Map |
describeBean(Object o)
protected utility method to wrap BeanUtils
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic BeanSortComparator(String propertyName)
propertyName - the property name for Java Bean to sort byprotected BeanSortComparator()
public int compare(Object o1, Object o2)
compare in interface Comparatoro1 - objecto2 - objectprotected Map describeBean(Object o)
o - DOCUMENTATION PENDINGUnsupportedOperationException - DOCUMENTATION PENDINGCopyright © 2005-2014 Sakai Project. All Rights Reserved.