|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.util.PropertyComparator
Compares a java property
Field Summary | |
private SortOrder |
direction
The sort order |
private java.lang.String |
property
Property to compare |
Constructor Summary | |
PropertyComparator(java.lang.String property,
SortOrder direction)
Constructor |
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object 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 |
private java.lang.String property
private SortOrder direction
Constructor Detail |
public PropertyComparator(java.lang.String property, SortOrder direction)
property
- Property to Sortdirection
- SortDirectionMethod Detail |
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
Comparator.compare(java.lang.Object, java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |