Class TargetLineItemOfferDetailComparator

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

public class TargetLineItemOfferDetailComparator extends Object implements Comparator<LineItemOfferDetail>
Comparator for LineItemOfferDetails being used as targets of 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: