/** * Constructs a new <tt>LMinMax</tt> processor, which converts the input data to a Long and 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 LMinMax(final long min, final long max) { super(); checkPreconditions(min, max); this.min = min; this.max = max; }
/** * Constructs a new <tt>LMinMax</tt> processor, which converts the input data to a Long and and 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 NullPointerException * if next is null * @throws IllegalArgumentException * if {@code max < min} */ public LMinMax(final long min, final long max, final LongCellProcessor next) { super(next); checkPreconditions(min, max); this.min = min; this.max = max; }