com.ibm.commerce.emarketing.beans

Class EmailActivityComparator

  • java.lang.Object
    • com.ibm.commerce.emarketing.beans.EmailActivityComparator
  • All Implemented Interfaces:
    java.util.Comparator


    public class EmailActivityComparator
    extends java.lang.Object
    implements java.util.Comparator
    Sorts e-mail activities 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 activity 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 activity 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.