@Test public void shouldAlwaysReturnFalseIfNoDelegatePredicatesSuppliedAtConstruction() throws Exception { OrPredicate<Object> orPredicate = new OrPredicate<Object>(Literals.<UnaryPredicate<? super Object>>iterable()); boolean result = orPredicate.evaluate(new Object()); assertThat(result, is(false)); }
@Override public boolean evaluate(final T instance) { return any(predicates, new UnaryPredicate<UnaryPredicate<? super T>>() { @Override public boolean evaluate(UnaryPredicate<? super T> predicate) { return predicate.evaluate(instance); } }); }
OrPredicate implements Predicate<T> { @Override public boolean evaluate(final T instance) { return any(predicates, new UnaryPredicate<UnaryPredicate<? super T>>() { @Override public boolean evaluate(UnaryPredicate<? super T> predicate) { return predicate.evaluate(instance); } }); } }
OrPredicate implements Predicate<T> { @Override public boolean evaluate(final T instance) { return any(predicates, new UnaryPredicate<UnaryPredicate<? super T>>() { @Override public boolean evaluate(UnaryPredicate<? super T> predicate) { return predicate.evaluate(instance); } }); } OrPredicate(Iterable<UnaryPredicate<? super T>> predicates); }
OrPredicate implements Predicate<T> { @Override public boolean evaluate(final T instance) { return any(predicates, new UnaryPredicate<UnaryPredicate<? super T>>() { @Override public boolean evaluate(UnaryPredicate<? super T> predicate) { return predicate.evaluate(instance); } }); } OrPredicate(Iterable<UnaryPredicate<? super T>> predicates); @Override boolean evaluate(final T instance); @Override boolean equals(Object other); @Override int hashCode(); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6,
            UnaryPredicate<? super T> p7); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6,
            UnaryPredicate<? super T> p7,
            UnaryPredicate<? super T> p8); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6,
            UnaryPredicate<? super T> p7,
            UnaryPredicate<? super T> p8,
            UnaryPredicate<? super T> p9); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6,
            UnaryPredicate<? super T> p7,
            UnaryPredicate<? super T> p8,
            UnaryPredicate<? super T> p9,
            UnaryPredicate<? super T>... p10on); }
OrPredicate implements Predicate<T> { @Override public boolean evaluate(final T instance) { return any(predicates, new UnaryPredicate<UnaryPredicate<? super T>>() { @Override public boolean evaluate(UnaryPredicate<? super T> predicate) { return predicate.evaluate(instance); } }); } OrPredicate(Iterable<UnaryPredicate<? super T>> predicates); @Override boolean evaluate(final T instance); @Override boolean equals(Object other); @Override int hashCode(); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6,
            UnaryPredicate<? super T> p7); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6,
            UnaryPredicate<? super T> p7,
            UnaryPredicate<? super T> p8); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6,
            UnaryPredicate<? super T> p7,
            UnaryPredicate<? super T> p8,
            UnaryPredicate<? super T> p9); static Predicate<T> or(
            UnaryPredicate<? super T> p1,
            UnaryPredicate<? super T> p2,
            UnaryPredicate<? super T> p3,
            UnaryPredicate<? super T> p4,
            UnaryPredicate<? super T> p5,
            UnaryPredicate<? super T> p6,
            UnaryPredicate<? super T> p7,
            UnaryPredicate<? super T> p8,
            UnaryPredicate<? super T> p9,
            UnaryPredicate<? super T>... p10on);  }