com.ibm.commerce.giftregistry.beans

Class GiftRegistryItemPurchaseRecordCatalogEntryDataBeanQuickSortCompare

  • java.lang.Object
    • com.ibm.commerce.giftregistry.beans.GiftRegistryItemPurchaseRecordCatalogEntryDataBeanQuickSortCompare
  • All Implemented Interfaces:
    QuickSortCompare


    public class GiftRegistryItemPurchaseRecordCatalogEntryDataBeanQuickSortCompare
    extends java.lang.Object
    implements QuickSortCompare
    This class is used to help sort a list of values for GiftRegistryItemPurchaseRecordCatalogEntryDataBean using the a quick sort algorithm. It is invoked from the GiftRegistryItemPurchaseRecordCatalogEntryListDataBean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(java.lang.Object obj1, java.lang.Object obj2)
      Compares two GiftRegistryItemPurchaseRecordCatalogEntryDataBean objects, based on the OrderBy criteria specified in the constructor.
      • Methods inherited from class java.lang.Object

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

      • GiftRegistryItemPurchaseRecordCatalogEntryDataBeanQuickSortCompare

        public GiftRegistryItemPurchaseRecordCatalogEntryDataBeanQuickSortCompare(java.text.Collator LocaleCollator,
                                                                                  java.lang.String strOrderBy)
        Given a collator and an OrderBy value, the corresponding GiftRegistryItemPurchaseRecordCatalogEntryDataBean values can be sorted. Possible OrderBy sort values include:
        • 0 - 'lastName' (alphabetically sorted)
        • 1 - 'thankYouNoteSent' (state of flag sorted)
        • 2 - 'datePurchased' (sorted by purchase data - most early date first )
        • 3 - 'partNumber' (alphabetically sorted)
        • 4 - 'price' (sorted with lowest price first )
        Parameters:
        LocaleCollator -
        strOrderBy -
    • Method Detail

      • compare

        public int compare(java.lang.Object obj1,
                           java.lang.Object obj2)
        Compares two GiftRegistryItemPurchaseRecordCatalogEntryDataBean objects, based on the OrderBy criteria specified in the constructor.
        Specified by:
        compare in interface QuickSortCompare
        Parameters:
        obj1 -
        obj2 -
        Returns:
        The result of the comparison