Class GuaranteeComparator

java.lang.Object
de.hybris.platform.travelservices.comparators.GuaranteeComparator
All Implemented Interfaces:
Comparator<GuaranteeModel>

public class GuaranteeComparator extends Object implements Comparator<GuaranteeModel>
The type Guarantee comparator.
  • Constructor Details

    • GuaranteeComparator

      public GuaranteeComparator()
  • Method Details

    • compare

      public int compare(GuaranteeModel guarantee1, GuaranteeModel guarantee2)
      Specified by:
      compare in interface Comparator<GuaranteeModel>
    • comparePriority

      protected int comparePriority(GuaranteeType guaranteeType1, GuaranteeType guaranteeType2)
      Compare priority int.
      Parameters:
      guaranteeType1 - the guarantee type 1
      guaranteeType2 - the guarantee type 2
      Returns:
      the int
    • getGuaranteesPriorityMap

      protected Map<GuaranteeType,Integer> getGuaranteesPriorityMap()
      Gets guarantees priority map.
      Returns:
      the guaranteesPriorityMap
    • setGuaranteesPriorityMap

      public void setGuaranteesPriorityMap(Map<GuaranteeType,Integer> guaranteesPriorityMap)
      Sets guarantees priority map.
      Parameters:
      guaranteesPriorityMap - the guaranteesPriorityMap to set