Lines Matching defs:other
55 * predicate, if this predicate is {@code false}, then the {@code other}
60 * {@code other} predicate will not be evaluated.
62 * @param other a predicate that will be logically-ANDed with this
65 * AND of this predicate and the {@code other} predicate
66 * @throws NullPointerException if other is null
68 default DoublePredicate and(DoublePredicate other) {
69 Objects.requireNonNull(other);
70 return (value) -> test(value) && other.test(value);
87 * predicate, if this predicate is {@code true}, then the {@code other}
92 * {@code other} predicate will not be evaluated.
94 * @param other a predicate that will be logically-ORed with this
97 * OR of this predicate and the {@code other} predicate
98 * @throws NullPointerException if other is null
100 default DoublePredicate or(DoublePredicate other) {
101 Objects.requireNonNull(other);
102 return (value) -> test(value) || other.test(value);