com.ibm.commerce.emarketing.beans
Class EmailMessageDataBeanQuickSortCompare
java.lang.Object
|
+--com.ibm.commerce.emarketing.beans.EmailMessageDataBeanQuickSortCompare
- All Implemented Interfaces:
-
QuickSortCompare
- public final class EmailMessageDataBeanQuickSortCompare
- extends java.lang.Object
- implements
QuickSortCompare
Sorts e-mail message templates for display.
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary |
EmailMessageDataBeanQuickSortCompare(java.text.Collator localeCollator)
Construct an EmailMessageDataBeanQuickSortCompare with a locale
collator and the field by which to sort. |
Method Summary |
int |
compare(java.lang.Object obj1, java.lang.Object obj2)
Compare the locale specific sorting order of the e-mail activity list
parameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright.
- See Also:
-
Constant Field Values
EmailMessageDataBeanQuickSortCompare
public EmailMessageDataBeanQuickSortCompare(java.text.Collator localeCollator)
- Construct an EmailMessageDataBeanQuickSortCompare with a locale collator
and the field by which to sort.
- Parameters:
localeCollator
- the Collator
to use when
sorting.
compare
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
- Compare the locale specific sorting order of the e-mail activity list
parameters
-
- Specified by:
-
compare
in interface
QuickSortCompare
-
- Parameters:
obj1
- an e-mail message template (as an Object) for the left
side of the compare.
obj2
- an e-mail message template (as an Object) for the right
side of the compare.
- Returns:
- -1 if obj1 comes before obj2 when sorted by the orderBy value passed to the
constructor, 0 if obj1 and obj2 are sorted to the same location, 1 if obj1
comes after obj2.