Class OfferCombinabilityCriteriaKey


  • public class OfferCombinabilityCriteriaKey
    extends Object
    A structure containing the combinability data for a single offer. For a given offer engine execution, the combinability data for an offer depends on the other offers in play. As a result, the data for this class is populated in a few phases. Initially, the combinability criteria is populated based on the data stored with the offer. The second phase, modifies this data to remove irrelevant combinability exceptions.
    Author:
    Brian Polster (bpolster)
    See Also:
    OfferCombinabilityCriteria
    • Constructor Detail

      • OfferCombinabilityCriteriaKey

        public OfferCombinabilityCriteriaKey()
    • Method Detail

      • addCompatibleOffers

        public List<BaseCandidateOffer> addCompatibleOffers​(List<BaseCandidateOffer> offers)
        Adds all offers of the same type that are compatible with this criteria to the compatibleOffers list.
        Parameters:
        offers - list of offers to add if compatible
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isCompatibleWithOtherTypes

        public boolean isCompatibleWithOtherTypes()
      • setCompatibleWithOtherTypes

        public void setCompatibleWithOtherTypes​(boolean compatibleWithOtherTypes)
      • getTargetType

        public String getTargetType()
      • setTargetType

        public void setTargetType​(String targetType)
      • getOtherTypeOfferIdExclusions

        public Set<String> getOtherTypeOfferIdExclusions()