/** * Factory to create the predicate. * * @param predicate1 the first predicate to check, not null * @param predicate2 the second predicate to check, not null * @return the <code>and</code> predicate * @throws IllegalArgumentException if either predicate is null */ public static Predicate getInstance(Predicate predicate1, Predicate predicate2) { if (predicate1 == null || predicate2 == null) { throw new IllegalArgumentException("Predicate must not be null"); } return new OrPredicate(predicate1, predicate2); }
/** * Factory to create the predicate. * * @param predicate1 the first predicate to check, not null * @param predicate2 the second predicate to check, not null * @return the <code>and</code> predicate * @throws IllegalArgumentException if either predicate is null */ public static Predicate getInstance(Predicate predicate1, Predicate predicate2) { if (predicate1 == null || predicate2 == null) { throw new IllegalArgumentException("Predicate must not be null"); } return new OrPredicate(predicate1, predicate2); }
/** * Factory to create the predicate. * * @param predicate1 the first predicate to check, not null * @param predicate2 the second predicate to check, not null * @return the <code>and</code> predicate * @throws IllegalArgumentException if either predicate is null */ public static Predicate getInstance(Predicate predicate1, Predicate predicate2) { if (predicate1 == null || predicate2 == null) { throw new IllegalArgumentException("Predicate must not be null"); } return new OrPredicate(predicate1, predicate2); }
/** * Factory to create the predicate. * * @param predicate1 the first predicate to check, not null * @param predicate2 the second predicate to check, not null * @return the <code>and</code> predicate * @throws IllegalArgumentException if either predicate is null */ public static Predicate getInstance(Predicate predicate1, Predicate predicate2) { if (predicate1 == null || predicate2 == null) { throw new IllegalArgumentException("Predicate must not be null"); } return new OrPredicate(predicate1, predicate2); }
/** * Factory to create the predicate. * * @param predicate1 the first predicate to check, not null * @param predicate2 the second predicate to check, not null * @return the <code>and</code> predicate * @throws IllegalArgumentException if either predicate is null */ public static Predicate getInstance(Predicate predicate1, Predicate predicate2) { if (predicate1 == null || predicate2 == null) { throw new IllegalArgumentException("Predicate must not be null"); } return new OrPredicate(predicate1, predicate2); }
/** * Factory to create the predicate. * * @param predicate1 the first predicate to check, not null * @param predicate2 the second predicate to check, not null * @return the <code>and</code> predicate * @throws IllegalArgumentException if either predicate is null */ public static Predicate getInstance(Predicate predicate1, Predicate predicate2) { if (predicate1 == null || predicate2 == null) { throw new IllegalArgumentException("Predicate must not be null"); } return new OrPredicate(predicate1, predicate2); }
/** * Factory to create the predicate. * * @param predicate1 the first predicate to check, not null * @param predicate2 the second predicate to check, not null * @return the <code>and</code> predicate * @throws IllegalArgumentException if either predicate is null */ public static Predicate getInstance(Predicate predicate1, Predicate predicate2) { if (predicate1 == null || predicate2 == null) { throw new IllegalArgumentException("Predicate must not be null"); } return new OrPredicate(predicate1, predicate2); }
public static Predicate filterOnStart(final ResourceResolver resolver) { return new AllPredicate(new Predicate[]{filterExecutionEnabled(true), new OrPredicate(filterByExecutionMode(ExecutionMode.ON_START), filterOnModify(resolver))}); } }
public static Predicate filterOnStart(final ResourceResolver resolver) { return new AllPredicate(new Predicate[]{filterExecutionEnabled(true), new OrPredicate(filterByExecutionMode(ExecutionMode.ON_START), filterOnModify(resolver))}); } }