return new DMinMax(Double.parseDouble(doubles[0]), Double.parseDouble(doubles[1]));
/** * 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; }
validateInputNotNull(value, context);
/** * 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; }
/** * Get a Double Min Max cellprocessor. * * @param minValue * minimum value. * @param maxValue * maximum value. * @return CellProcessor */ private static CellProcessor addDoubleMinMax(Double minValue, Double maxValue) { Double min = minValue == null ? DMinMax.MIN_DOUBLE : minValue; Double max = maxValue == null ? DMinMax.MAX_DOUBLE : maxValue; return new DMinMax(min, max); }
/** * Get a Double Min Max cellprocessor. * * @param minValue * minimum value. * @param maxValue * maximum value. * @return CellProcessor */ private static CellProcessor addDoubleMinMax(Double minValue, Double maxValue) { Double min = minValue == null ? DMinMax.MIN_DOUBLE : minValue; Double max = maxValue == null ? DMinMax.MAX_DOUBLE : maxValue; return new DMinMax(min, max); }
return new DMinMax(Double.parseDouble(doubles[0]), Double.parseDouble(doubles[1]));