Class VolumeAwarePriceInformationComparator

java.lang.Object
de.hybris.platform.yacceleratorcore.comparators.VolumeAwarePriceInformationComparator
All Implemented Interfaces:
Comparator<PriceInformation>

public class VolumeAwarePriceInformationComparator extends Object implements Comparator<PriceInformation>
Compares two prices.
The prices are compared by minqty and the lowest minqty (or null) is treated as lower.
If there are multiple prices then the lowest price is treated as lower.
If there are still multiple records then the first is treated as lower.