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 |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM Copyright
- See Also:
- Constant Field Values
DiscountChooseListQuickSortCompare
public DiscountChooseListQuickSortCompare()
- DiscountChooseListQuickSortCompare default constructor
DiscountChooseListQuickSortCompare
public DiscountChooseListQuickSortCompare(java.text.Collator localeCollator,
java.lang.String orderBy)
- DiscountChooseListQuickSortCompare constructor.
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
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.