|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.salespointframework.core.data.DefaultCountingStockFromValueCreator
public class DefaultCountingStockFromValueCreator
A StockFromValueCreator for CountingStocks.
This StockFromValueCreator assumes a potentially infinite source of available items and adds exactly as many items of each type (i.e. corresponding CatalogItem) as needed to fulfil the requirement.
| Field Summary | |
|---|---|
protected CatalogItemValue |
m_civEvaluator
The CatalogItemValue used to determine the CatalogItems' values. |
| Constructor Summary | |
|---|---|
DefaultCountingStockFromValueCreator(CatalogItemValue civ)
Create a new DefaultCountingStockFromValueCreator. |
|
| Method Summary | |
|---|---|
Value |
fillStock(Stock st,
Value v,
DataBasket db)
This StockFromValueCreator assumes a potentially infinite source of available items and adds exactly as many items of each type (i.e. |
static java.util.Comparator<CatalogItem> |
invertedCIValueOrder(CatalogItemValue civ)
Helper method that creates a Comparator that orders CatalogItems, highest value first. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CatalogItemValue m_civEvaluator
| Constructor Detail |
|---|
public DefaultCountingStockFromValueCreator(CatalogItemValue civ)
civ - the CatalogItemValue used to determine the CatalogItems' values.| Method Detail |
|---|
public Value fillStock(Stock st,
Value v,
DataBasket db)
fillStock in interface StockFromValueCreatorst - the Stock to which to add the StockItems.v - the value to be added to the Stock.db - the DataBasket relative to which to perform the operation.public static final java.util.Comparator<CatalogItem> invertedCIValueOrder(CatalogItemValue civ)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||