Class RLPromotionListQuickSortCompare

  • java.lang.Object
  • All Implemented Interfaces:
    RLConstants, QuickSortCompare

    public final class RLPromotionListQuickSortCompare
    extends java.lang.Object
    implements QuickSortCompare, RLConstants
    This class is the implementation of QuickSortCompare, which is used to sort the discount list according to the user's choice.
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RLPromotionListQuickSortCompare

        public RLPromotionListQuickSortCompare(java.text.Collator newLocaleCollator,
                                               java.lang.String newOrderBy)
        RLDiscountListQuickSortCompare constructor.
        newLocaleCollator - The Collator object to perform locale-sensitive String comparison.
        newOrderBy - String representing the value of OrderBy.
    • Method Detail

      • compare

        public int compare(java.lang.Object obj1,
                           java.lang.Object obj2)
        This method is used to compare two RLPromotionListRow objects.
        Specified by:
        compare in interface QuickSortCompare
        obj1 - An RLPromotionListRow object to compare.
        obj2 - An RLPromotionListRow object to compare.
        Returns an integer value.