com.ibm.commerce.tools.promotions
Class DiscountChooseListQuickSortCompare

java.lang.Object
  |
  +--com.ibm.commerce.tools.promotions.DiscountChooseListQuickSortCompare
All Implemented Interfaces:
QuickSortCompare

public final class DiscountChooseListQuickSortCompare
extends java.lang.Object
implements QuickSortCompare

This class implement the quick sort algorithm for discount list page sorting function.


Field Summary
static java.lang.String COPYRIGHT
          IBM Copyright
 
Constructor Summary
DiscountChooseListQuickSortCompare()
          DiscountChooseListQuickSortCompare default constructor
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM Copyright
See Also:
Constant Field Values
Constructor Detail

DiscountChooseListQuickSortCompare

public DiscountChooseListQuickSortCompare()
DiscountChooseListQuickSortCompare default constructor

DiscountChooseListQuickSortCompare

public DiscountChooseListQuickSortCompare(java.text.Collator localeCollator,
                                          java.lang.String orderBy)
DiscountChooseListQuickSortCompare constructor.
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
compare two Discount Object based on the orderBy value.
Specified by:
compare in interface QuickSortCompare
Returns:
-1, 0, 1