Class DefaultBestMatchStrategy
- java.lang.Object
-
- de.hybris.platform.stock.strategy.impl.DefaultBestMatchStrategy
-
- All Implemented Interfaces:
BestMatchStrategy
public class DefaultBestMatchStrategy extends java.lang.Object implements BestMatchStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultBestMatchStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WarehouseModelgetBestMatchOfAvailability(java.util.Map<WarehouseModel,java.util.Date> map)Returns the warehouse which offers the "best" product "availability" .WarehouseModelgetBestMatchOfQuantity(java.util.Map<WarehouseModel,java.lang.Integer> map)Returns the warehouse which offers the "best" product "quantity".
-
-
-
Method Detail
-
getBestMatchOfQuantity
public WarehouseModel getBestMatchOfQuantity(java.util.Map<WarehouseModel,java.lang.Integer> map)
Description copied from interface:BestMatchStrategyReturns the warehouse which offers the "best" product "quantity".- Specified by:
getBestMatchOfQuantityin interfaceBestMatchStrategy- Parameters:
map- the mapped quantities of a certain product- Returns:
- WarehouseModel best match
-
getBestMatchOfAvailability
public WarehouseModel getBestMatchOfAvailability(java.util.Map<WarehouseModel,java.util.Date> map)
Description copied from interface:BestMatchStrategyReturns the warehouse which offers the "best" product "availability" .- Specified by:
getBestMatchOfAvailabilityin interfaceBestMatchStrategy- Parameters:
map- the mapped available dates of a certain product- Returns:
- WarehouseModel best match
-
-