Class PriceSortingStrategy
java.lang.Object
de.hybris.platform.travelfacades.fare.sorting.strategies.AbstractResultSortingStrategy
de.hybris.platform.travelfacades.fare.sorting.strategies.PriceSortingStrategy
Implementation of
AbstractResultSortingStrategy to sort the FareSelectionData based on the price-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BigDecimalgetMinimumPrice(PricedItineraryData pricedItinerary) Method to get the minimumPrice for a specific pricedItineraryData.voidsortFareSelectionData(FareSelectionData fareSelectionData) Method to sort the FareSelectionDataMethods inherited from class de.hybris.platform.travelfacades.fare.sorting.strategies.AbstractResultSortingStrategy
comparePricedItineraryByDepartureDate
-
Constructor Details
-
PriceSortingStrategy
public PriceSortingStrategy()
-
-
Method Details
-
sortFareSelectionData
Description copied from class:AbstractResultSortingStrategyMethod to sort the FareSelectionData- Specified by:
sortFareSelectionDatain classAbstractResultSortingStrategy- Parameters:
fareSelectionData- as the FareSelectionData to be sorted
-
getMinimumPrice
Method to get the minimumPrice for a specific pricedItineraryData. The minimumPrice for a pricedItineraryData corresponds to the price of the cheapest its bundles.- Parameters:
pricedItinerary- the priced itinerary- Returns:
- the minumumPrice for the pricedItinerary
-