/** * Factory method that performs validation. * * @param closure the closure to call, not null * @return the <code>closure</code> transformer * @throws IllegalArgumentException if the closure is null */ public static Transformer getInstance(Closure closure) { if (closure == null) { throw new IllegalArgumentException("Closure must not be null"); } return new ClosureTransformer(closure); }
/** * Factory method that performs validation. * * @param closure the closure to call, not null * @return the <code>closure</code> transformer * @throws IllegalArgumentException if the closure is null */ public static Transformer getInstance(Closure closure) { if (closure == null) { throw new IllegalArgumentException("Closure must not be null"); } return new ClosureTransformer(closure); }
/** * Factory method that performs validation. * * @param closure the closure to call, not null * @return the <code>closure</code> transformer * @throws IllegalArgumentException if the closure is null */ public static Transformer getInstance(Closure closure) { if (closure == null) { throw new IllegalArgumentException("Closure must not be null"); } return new ClosureTransformer(closure); }
/** * Factory method that performs validation. * * @param closure the closure to call, not null * @return the <code>closure</code> transformer * @throws IllegalArgumentException if the closure is null */ public static Transformer getInstance(Closure closure) { if (closure == null) { throw new IllegalArgumentException("Closure must not be null"); } return new ClosureTransformer(closure); }
/** * Factory method that performs validation. * * @param closure the closure to call, not null * @return the <code>closure</code> transformer * @throws IllegalArgumentException if the closure is null */ public static Transformer getInstance(Closure closure) { if (closure == null) { throw new IllegalArgumentException("Closure must not be null"); } return new ClosureTransformer(closure); }
/** * Factory method that performs validation. * * @param closure the closure to call, not null * @return the <code>closure</code> transformer * @throws IllegalArgumentException if the closure is null */ public static Transformer getInstance(Closure closure) { if (closure == null) { throw new IllegalArgumentException("Closure must not be null"); } return new ClosureTransformer(closure); }
/** * Factory method that performs validation. * * @param closure the closure to call, not null * @return the <code>closure</code> transformer * @throws IllegalArgumentException if the closure is null */ public static Transformer getInstance(Closure closure) { if (closure == null) { throw new IllegalArgumentException("Closure must not be null"); } return new ClosureTransformer(closure); }