Class LogisticService
java.lang.Object
de.bytestore.hostinger.ecommerce.service.LogisticService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncombineEANs(ArrayList<LogisticsResultItem> productsIO) Combines the EANs of the given list of LogisticsProducts and calculates the highest and lowest prices for each EAN.query(LogisticsFilter termIO) Executes a query for LogisticsResults using the given term.
-
Constructor Details
-
LogisticService
public LogisticService()
-
-
Method Details
-
query
Executes a query for LogisticsResults using the given term.- Parameters:
termIO- the search term for the query (null values are ignored)- Returns:
- an ArrayList of LogisticsResults matching the query
- Throws:
Exception- if an error occurs during the query
-
combineEANs
Combines the EANs of the given list of LogisticsProducts and calculates the highest and lowest prices for each EAN.- Parameters:
productsIO- the list of LogisticsProducts to combine- Returns:
- a collection of LogisticsResults containing the combined EANs and their highest and lowest prices
-