|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.pricing.definition.MatchingObject
public class MatchingObject
An element of a collection that matched, the quantity that matched and any associated discount information.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Constructor Summary | |
|---|---|
MatchingObject(java.lang.Object pMatchingObject,
long pQuantity)
Constructor to add a matched Object and quantity. |
|
| Method Summary | |
|---|---|
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> |
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 |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public MatchingObject(java.lang.Object pMatchingObject,
long pQuantity)
pMatchingObject - Object that matchedpQuantity - long quantity| Method Detail |
|---|
public 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 void addDiscount(DiscountStructure pDiscount)
pDiscount - DiscountStructure to addpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||