/** * Constructs a new <tt>StrMinMax</tt> processor, which ensures that the input data has a string length between the * supplied min and max values (both inclusive). * * @param min * the minimum String length * @param max * the maximum String length * @throws IllegalArgumentException * if {@code max < min}, or {@code min is < 0} */ public StrMinMax(final long min, final long max) { super(); checkPreconditions(min, max); this.min = min; this.max = max; }
/** * Constructs a new <tt>StrMinMax</tt> processor, which ensures that the input data has a string length between the * supplied min and max values (both inclusive), then calls the next processor in the chain. * * @param min * the minimum String length * @param max * the maximum String length * @param next * the next processor in the chain * @throws NullPointerException * if next is null * @throws IllegalArgumentException * if {@code max < min}, or {@code min is < 0} */ public StrMinMax(final long min, final long max, final CellProcessor next) { super(next); checkPreconditions(min, max); this.min = min; this.max = max; }