Class NumberRangeRule


  • public class NumberRangeRule
    extends Object
    Contains one rule for a number range
    Author:
    ronny.roeller@fredhopper.com
    • Constructor Detail

      • NumberRangeRule

        public NumberRangeRule​(double lowerBound,
                               double upperBound,
                               String value)
    • Method Detail

      • evaluate

        public String evaluate​(double compareValue)
        Evaluates if the current value is within the range. If so, it returns the value. Otherwise it returns null.
      • getLowerBound

        public double getLowerBound()
      • getUpperBound

        public double getUpperBound()
      • getValue

        public String getValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object