Class QualifierLineItemOfferDetailComparator

java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.comparator.QualifierLineItemOfferDetailComparator
All Implemented Interfaces:
Comparator<LineItemOfferDetail>

public class QualifierLineItemOfferDetailComparator extends Object implements Comparator<LineItemOfferDetail>
Comparator for LineItemOfferDetails being used as qualifiers for offers. Orders by either the standard or sale price of the details' LineItems.
A Comparator was used instead of LineItemOfferDetail implementing Comparable because we need a flag to determine whether to use the sale price or standard price in the comparison. See useSalePrice.
Author:
Nathan Moore (nathanmoore).
See Also: