|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.content.expression.ContentComparator
A comparator which can sort Content objects.
This will not be very fast since the comparision is done in Java. Try to do sorting in the database.
Field Summary | |
protected SortCriteria[] |
criteria
The SortCriteria this uses. |
Constructor Summary | |
ContentComparator(SortCriteria[] criteria)
Constructor. |
|
ContentComparator(java.lang.String sortBy)
Constructor. |
Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compare two Content objects based upon the sorting criteria. |
java.lang.String |
toString()
Get a string representation. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected SortCriteria[] criteria
Constructor Detail |
public ContentComparator(SortCriteria[] criteria)
public ContentComparator(java.lang.String sortBy) throws java.lang.IllegalArgumentException
sortBy
- the sort by string to useSortCriteria.getSortCriteria(java.lang.String)
Method Detail |
public int compare(java.lang.Object obj1, java.lang.Object obj2) throws java.lang.ClassCastException
obj1
- the first object.obj2
- the second object.public java.lang.String toString()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |