com.google.gwt.emul.java.util.function.BiPredicate Maven / Gradle / Ivy
The newest version!
package java.util.function;
@FunctionalInterface
public interface BiPredicate {
boolean test(T t, U u);
default BiPredicate and(BiPredicate other) {
assert other != null;
return (T t, U u) -> BiPredicate.this.test(t, u) && other.test(t, u);
}
default BiPredicate negate() {
return (T t, U u) -> !BiPredicate.this.test(t, u);
}
default BiPredicate or(BiPredicate other) {
assert other != null;
return (T t, U u) -> BiPredicate.this.test(t, u) || other.test(t, u);
}
}