Class Europe1PriceFactory.PriceRowMatchComparator

  • All Implemented Interfaces:
    java.util.Comparator<PriceRow>
    Enclosing class:
    Europe1PriceFactory

    protected class Europe1PriceFactory.PriceRowMatchComparator
    extends java.lang.Object
    implements java.util.Comparator<PriceRow>
    Used for ordering price rows in best match order. Usually the first row is being chosen as price.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(PriceRow row1, PriceRow row2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • PriceRowMatchComparator

        protected PriceRowMatchComparator​(Currency curr,
                                          boolean net,
                                          Unit unit)
    • Method Detail

      • compare

        public int compare​(PriceRow row1,
                           PriceRow row2)
        Specified by:
        compare in interface java.util.Comparator<PriceRow>