com.ibm.commerce.emarketing.beans

Class CustomerProfileDataBeanQuickSortCompare

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


    public final class CustomerProfileDataBeanQuickSortCompare
    extends java.lang.Object
    implements com.ibm.commerce.tools.util.QuickSortCompare
    Sorts customer segements for display.
    • Field Summary

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

      Constructors 
      Constructor and Description
      CustomerProfileDataBeanQuickSortCompare(java.text.Collator localeCollator)
      Construct an CustomerProfileDataBeanQuickSortCompare 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 customer profile list parameters
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • CustomerProfileDataBeanQuickSortCompare

        public CustomerProfileDataBeanQuickSortCompare(java.text.Collator localeCollator)
        Construct an CustomerProfileDataBeanQuickSortCompare with a locale collator and the field by which to sort.
        Parameters:
        localeCollator - the Collator to use when sorting.
    • Method Detail

      • compare

        public int compare(java.lang.Object obj1,
                           java.lang.Object obj2)
        Compare the locale specific sorting order of the customer profile list parameters
        Specified by:
        compare in interface com.ibm.commerce.tools.util.QuickSortCompare
        Parameters:
        obj1 - an customer profile (as an Object) for the left side of the compare.
        obj2 - an customer profile (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.