/** * Constructs a new <tt>DMinMax</tt> processor, which converts the input to a Double and ensures the value is * between the supplied min and max values. * * @param min * the minimum value (inclusive) * @param max * the maximum value (inclusive) * @throws IllegalArgumentException * if {@code max < min} */ public DMinMax(final double min, final double max) { super(); checkPreconditions(min, max); this.min = min; this.max = max; }
/** * Constructs a new <tt>DMinMax</tt> processor, which converts the input to a Double, ensures the value is between * the supplied min and max values, then calls the next processor in the chain. * * @param min * the minimum value (inclusive) * @param max * the maximum value (inclusive) * @param next * the next processor in the chain * @throws IllegalArgumentException * if {@code max < min} * @throws NullPointerException * if next is null */ public DMinMax(final double min, final double max, final DoubleCellProcessor next) { super(next); checkPreconditions(min, max); this.min = min; this.max = max; }