Class GuaranteeComparator
java.lang.Object
de.hybris.platform.travelservices.comparators.GuaranteeComparator
- All Implemented Interfaces:
Comparator<GuaranteeModel>
The type Guarantee comparator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(GuaranteeModel guarantee1, GuaranteeModel guarantee2) protected intcomparePriority(GuaranteeType guaranteeType1, GuaranteeType guaranteeType2) Compare priority int.protected Map<GuaranteeType,Integer> Gets guarantees priority map.voidsetGuaranteesPriorityMap(Map<GuaranteeType, Integer> guaranteesPriorityMap) Sets guarantees priority map.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
-
GuaranteeComparator
public GuaranteeComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<GuaranteeModel>
-
comparePriority
Compare priority int.- Parameters:
guaranteeType1- the guarantee type 1guaranteeType2- the guarantee type 2- Returns:
- the int
-
getGuaranteesPriorityMap
Gets guarantees priority map.- Returns:
- the guaranteesPriorityMap
-
setGuaranteesPriorityMap
Sets guarantees priority map.- Parameters:
guaranteesPriorityMap- the guaranteesPriorityMap to set
-