|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.BeanComparator
public class BeanComparator
Name: BeanComparator
Description: Generic comparator for java beans.
| Constructor Summary | |
|---|---|
BeanComparator(CompareTuple compareTuple)
Constructs a BeanComparator instance with specific attributes. |
|
BeanComparator(CompareTuple[] compareTuples)
Constructs a BeanComparator instance with specific attributes. |
|
BeanComparator(String fieldName)
Constructs a BeanComparator instance with specific attributes. |
|
BeanComparator(String[] fieldNames)
Constructs a BeanComparator instance with specific attributes. |
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
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 |
| Constructor Detail |
|---|
public BeanComparator(String fieldName)
fieldName - The name of the field by which to sort.public BeanComparator(CompareTuple compareTuple)
compareTuple - The name of the field plus the direction by which to sort.public BeanComparator(String[] fieldNames)
fieldNames - The names of the fields by which to sort.public BeanComparator(CompareTuple[] compareTuples)
compareTuples - The names of the field plus the directions by which to sort.| Method Detail |
|---|
public int compare(Object o1,
Object o2)
compare in interface ComparatorComparator.compare(java.lang.Object, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||