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