public class MatchingObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
MatchingObject(java.lang.Object pMatchingObject,
long pQuantity)
Constructor to add a matched Object and quantity.
|
Modifier and Type | Method and Description |
---|---|
void |
addDiscount(DiscountStructure pDiscount)
Utility method to add another discount to the list of discounts.
|
java.util.List<DiscountStructure> |
getDiscounts()
Get property Discounts.
|
java.util.Map<java.lang.Integer,java.lang.Long> |
getGroupIndexQuantityMap()
Get property IndexQuantityMap
|
java.util.Map<java.lang.Integer,java.lang.Long> |
getIteratorIndexMap()
Get property IteratorIndexMap
|
java.lang.Object |
getMatchingObject()
Get property MatchingObject
The object that matched, typically a FilteredCommerceItem |
long |
getQuantity()
Get property Quantity
The quantity of the object that matched |
void |
setDiscounts(java.util.List<DiscountStructure> pDiscounts)
Set property Discounts
The List of discount structure of the object that matched |
void |
setGroupIndexQuantityMap(java.util.Map<java.lang.Integer,java.lang.Long> pGroupIndexQuantityMap)
Set property IndexQuantityMap
|
void |
setIteratorIndexMap(int pIteratorIndex,
long pMatchingQuantity)
Set property IteratorIndexMap
|
void |
setMatchingObject(java.lang.Object pMatchingObject)
Set property MatchingObject
The object that matched, typically a FilteredCommerceItem |
void |
setQuantity(long pQuantity)
Set property Quantity
The quantity of the object that matched |
java.lang.String |
toString() |
public static final java.lang.String CLASS_VERSION
public MatchingObject(java.lang.Object pMatchingObject, long pQuantity)
pMatchingObject
- Object that matchedpQuantity
- long quantitypublic void setMatchingObject(java.lang.Object pMatchingObject)
pMatchingObject
- new Object value to setpublic java.lang.Object getMatchingObject()
public void setQuantity(long pQuantity)
pQuantity
- long new quantity to setpublic long getQuantity()
public void setDiscounts(java.util.List<DiscountStructure> pDiscounts)
pDiscounts
- new DiscountStructure List to setpublic java.util.List<DiscountStructure> getDiscounts()
public void setIteratorIndexMap(int pIteratorIndex, long pMatchingQuantity)
pIteratorIndex
- the index of the iterator that this object matched inpMatchingQuantity
- the matching quantity found for the given iteratorpublic java.util.Map<java.lang.Integer,java.lang.Long> getIteratorIndexMap()
public java.util.Map<java.lang.Integer,java.lang.Long> getGroupIndexQuantityMap()
public void setGroupIndexQuantityMap(java.util.Map<java.lang.Integer,java.lang.Long> pGroupIndexQuantityMap)
pGroupIndexQuantityMap
- - a map associating quantities from this matching
object with discount groups.public void addDiscount(DiscountStructure pDiscount)
pDiscount
- DiscountStructure to addpublic java.lang.String toString()
toString
in class java.lang.Object