Class PackagePriceAscendingSortStrategy
java.lang.Object
de.hybris.platform.travelfacades.facades.packages.strategies.impl.PackagePriceAscendingSortStrategy
- All Implemented Interfaces:
AccommodationOfferingSearchResponseSortStrategy
public class PackagePriceAscendingSortStrategy
extends Object
implements AccommodationOfferingSearchResponseSortStrategy
Implementation of
AccommodationOfferingSearchResponseSortStrategy to sort the list of PackageData in
the AccommodationSearchResponseData based on the price in an ascending order-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Comparator<PropertyData>voidsetTotalPackagePriceAscComparator(Comparator<PropertyData> totalPackagePriceAscComparator) voidsort(AccommodationSearchResponseData accommodationSearchResponseData) Method to sort the AccommodationSearchResponseData
-
Constructor Details
-
PackagePriceAscendingSortStrategy
public PackagePriceAscendingSortStrategy()
-
-
Method Details
-
sort
Description copied from interface:AccommodationOfferingSearchResponseSortStrategyMethod to sort the AccommodationSearchResponseData- Specified by:
sortin interfaceAccommodationOfferingSearchResponseSortStrategy- Parameters:
accommodationSearchResponseData- as the accommodationSearchResponseData to be sorted
-
getTotalPackagePriceAscComparator
- Returns:
- the totalPackagePriceAscComparator
-
setTotalPackagePriceAscComparator
public void setTotalPackagePriceAscComparator(Comparator<PropertyData> totalPackagePriceAscComparator) - Parameters:
totalPackagePriceAscComparator- the totalPackagePriceAscComparator to set
-