Lines Matching defs:other
58 * predicate, if this predicate is {@code false}, then the {@code other}
63 * {@code other} predicate will not be evaluated.
65 * @param other a predicate that will be logically-ANDed with this
68 * AND of this predicate and the {@code other} predicate
69 * @throws NullPointerException if other is null
71 default BiPredicate<T, U> and(BiPredicate<? super T, ? super U> other) {
72 Objects.requireNonNull(other);
73 return (T t, U u) -> test(t, u) && other.test(t, u);
90 * predicate, if this predicate is {@code true}, then the {@code other}
95 * {@code other} predicate will not be evaluated.
97 * @param other a predicate that will be logically-ORed with this
100 * OR of this predicate and the {@code other} predicate
101 * @throws NullPointerException if other is null
103 default BiPredicate<T, U> or(BiPredicate<? super T, ? super U> other) {
104 Objects.requireNonNull(other);
105 return (T t, U u) -> test(t, u) || other.test(t, u);