com.ibm.commerce.tools.promotions
Class DiscountChooseListQuickSortCompare

com.ibm.commerce.tools.promotions.DiscountChooseListQuickSortCompare

public final class DiscountChooseListQuickSortCompare


Constructor Summary
DiscountChooseListQuickSortCompare(java.text.Collator localeCollator, java.lang.String orderBy)
          DiscountChooseListQuickSortCompare constructor.
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          compare two Discount Object based on the orderBy value.
 

Constructor Detail

DiscountChooseListQuickSortCompare

public DiscountChooseListQuickSortCompare(java.text.Collator localeCollator,
                                          java.lang.String orderBy)
DiscountChooseListQuickSortCompare constructor.
Parameters:
Locale - collator
the - property name used to be ordered by
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
compare two Discount Object based on the orderBy value.
Parameters:
DiscountChooseListRow - object1
DiscountChooseListRow - object2
Returns:
-1, 0, 1