com.ibm.commerce.emarketing.beans

Class EmailMessageDataBeanQuickSortCompare

  • java.lang.Object
    • com.ibm.commerce.emarketing.beans.EmailMessageDataBeanQuickSortCompare
  • All Implemented Interfaces:
    com.ibm.commerce.tools.util.QuickSortCompare


    public final class EmailMessageDataBeanQuickSortCompare
    extends java.lang.Object
    implements com.ibm.commerce.tools.util.QuickSortCompare
    Sorts e-mail message templates for display.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright.
    • Constructor Summary

      Constructors 
      Constructor and Description
      EmailMessageDataBeanQuickSortCompare(java.text.Collator localeCollator)
      Construct an EmailMessageDataBeanQuickSortCompare with a locale collator and the field by which to sort.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • 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.
        orderBy - The key indicating by which column the sort should be done.
    • Method Detail

      • 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 com.ibm.commerce.tools.util.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.