public class DefaultBestMatchStrategy extends Object implements BestMatchStrategy
| Constructor and Description |
|---|
DefaultBestMatchStrategy() |
| Modifier and Type | Method and Description |
|---|---|
WarehouseModel |
getBestMatchOfAvailability(Map<WarehouseModel,Date> map)
Returns the warehouse which offers the "best" product "availability" .
|
WarehouseModel |
getBestMatchOfQuantity(Map<WarehouseModel,Integer> map)
Returns the warehouse which offers the "best" product "quantity".
|
public WarehouseModel getBestMatchOfQuantity(Map<WarehouseModel,Integer> map)
BestMatchStrategygetBestMatchOfQuantity in interface BestMatchStrategymap - the mapped quantities of a certain productpublic WarehouseModel getBestMatchOfAvailability(Map<WarehouseModel,Date> map)
BestMatchStrategygetBestMatchOfAvailability in interface BestMatchStrategymap - the mapped available dates of a certain productCopyright © 2017 SAP SE. All Rights Reserved.