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.
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(PriceInformation priceInfo1, PriceInformation priceInfo2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
VolumeAwarePriceInformationComparator
public VolumeAwarePriceInformationComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<PriceInformation>
-