Class NumericRangeConstraint

    • Constructor Detail

      • NumericRangeConstraint

        public NumericRangeConstraint()
    • Method Detail

      • getType

        public String getType()
        Description copied from interface: Constraint
        Returns the 'type' of the constraint, this is the identifier given to constraint in the configuration.
        Specified by:
        getType in interface Constraint
        Overrides:
        getType in class AbstractConstraint
        Returns:
        The type
      • getMinValue

        public double getMinValue()
        Returns:
        Returns the minimum value allowed by the constraint
      • setMinValue

        public void setMinValue​(double minValue)
        Set the minimum value allowed, which can be any value between Double.MIN_VALUE and Double.MAX_VALUE.
        Parameters:
        minValue - the minimum value allowed by the constraint
      • getMaxValue

        public double getMaxValue()
        Returns:
        Returns the minimum value allowed by the constraint
      • setMaxValue

        public void setMaxValue​(double maxValue)
        Set the maximum value allowed, which can be any value between Double.MIN_VALUE and Double.MAX_VALUE.
        Parameters:
        maxValue - the minimum value allowed by the constraint