|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.master.search.transaction.TransactionSummaryComparator
The TransactionSummaryComparator class is used to sort and compare TransactionSummary objects in a transaction iterator.
Constructor Summary | |
TransactionSummaryComparator(java.lang.String field,
boolean reverse)
Creates a new instance of the TransactionSummaryComparator class, and sorts the transaction summaries by the specified field. |
Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compares the field by which the transaction summaries in the transaction iterator are sorted to determine the order in which they will be displayed. |
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 |
compare, equals |
Constructor Detail |
public TransactionSummaryComparator(java.lang.String field, boolean reverse)
field
- The name of the field to use as sorting criteria. The
following field names can be used.
reverse
- An indicator of whether to sort in ascending or
descending order. Specify true to sort in descending
order, or specify false to sort in ascending order.
Method Detail |
public int compare(java.lang.Object obj1, java.lang.Object obj2)
obj1
- The first transaction summary to compare.obj2
- The second transaction summary to compare.
int
- An integer representing the
results of the comparison. Possible results are:
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.