Class OptimalScheduleFinder._StateComparatorLowestValue

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object o1, java.lang.Object o2)
      compare two states on their value.
      • 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

      • _StateComparatorLowestValue

        protected _StateComparatorLowestValue()
    • Method Detail

      • compare

        public int compare​(java.lang.Object o1,
                           java.lang.Object o2)
        compare two states on their value. If values tie, then sort on arbitrary other criteria
        Parameters:
        o1 - first object to compare
        o2 - second object to compare
        Returns:
        -1 if o1 < o2, +1 if o1 > o2 0 otherwise