Class ItemOfferQtyOneComparator
java.lang.Object
org.broadleafcommerce.core.offer.service.discount.ItemOfferQtyOneComparator
- All Implemented Interfaces:
Comparator<PromotableCandidateItemOffer>
public class ItemOfferQtyOneComparator
extends Object
implements Comparator<PromotableCandidateItemOffer>
The same as
ItemOfferComparator but uses the PromotableCandidateItemOffer.getPotentialSavingsQtyOne()
method instead.- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ItemOfferQtyOneComparator
public ItemOfferQtyOneComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<PromotableCandidateItemOffer>
-