Class ProductPriceRangePopulator.PriceRangeComparator
java.lang.Object
de.hybris.platform.commerceservices.util.AbstractComparator<PriceInformation>
de.hybris.platform.commercefacades.product.converters.populator.ProductPriceRangePopulator.PriceRangeComparator
- All Implemented Interfaces:
Comparator<PriceInformation>
- Enclosing class:
- ProductPriceRangePopulator<SOURCE extends ProductModel,
TARGET extends ProductData>
public static class ProductPriceRangePopulator.PriceRangeComparator
extends AbstractComparator<PriceInformation>
-
Field Summary
FieldsFields inherited from class de.hybris.platform.commerceservices.util.AbstractComparator
AFTER, BEFORE, EQUAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcompareInstances(PriceInformation price1, PriceInformation price2) Implement method to perform the comparison.Methods inherited from class de.hybris.platform.commerceservices.util.AbstractComparator
compare, compareValues, compareValues, compareValues, compareValues, compareValues, instanceEqualsMethods 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
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
PriceRangeComparator
public PriceRangeComparator()
-
-
Method Details
-
compareInstances
Description copied from class:AbstractComparatorImplement method to perform the comparison. The instances passed are different and neither is null.- Specified by:
compareInstancesin classAbstractComparator<PriceInformation>- Parameters:
price1- first instanceprice2- second instance- Returns:
- return one of
AbstractComparator.BEFORE,AbstractComparator.EQUAL, orAbstractComparator.AFTER.
-