com.ibm.commerce.emarketing.emailtemplate.databeans

Class EmailTemplateComparator

  • java.lang.Object
    • com.ibm.commerce.emarketing.emailtemplate.databeans.EmailTemplateComparator
  • All Implemented Interfaces:
    java.util.Comparator


    public class EmailTemplateComparator
    extends java.lang.Object
    implements java.util.Comparator
    Locale sensitive comparison of two e-mail template objects based on the orderBy parameter. Used to sort the e-mail templates for display.
    • Field Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(java.lang.Object o1, java.lang.Object o2)
      Compare the locale specific sorting order of the e-mail template list parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

    • Method Detail

      • compare

        public int compare(java.lang.Object o1,
                           java.lang.Object o2)
        Compare the locale specific sorting order of the e-mail template list parameters.
        Specified by:
        compare in interface java.util.Comparator
        Parameters:
        o1 - an e-mail activity (as an Object) for the left side of the compare.
        o2 - an e-mail activity (as an Object) for the right side of the compare.
        Returns:
        -1 if o1 comes before o2 when sorted by the orderBy value passed to the constructor, 0 if o1 and o2 are sorted to the same location, 1 if o1 comes after obj2.