All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy