Class DefaultBestMatchStrategy
java.lang.Object
de.hybris.platform.stock.strategy.impl.DefaultBestMatchStrategy
- All Implemented Interfaces:
BestMatchStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the warehouse which offers the "best" product "availability" .Returns the warehouse which offers the "best" product "quantity".
-
Constructor Details
-
DefaultBestMatchStrategy
public DefaultBestMatchStrategy()
-
-
Method Details
-
getBestMatchOfQuantity
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
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
-