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

com.google.gwt.emul.java.util.function.DoublePredicate Maven / Gradle / Ivy

The newest version!
package java.util.function;

@FunctionalInterface
public interface DoublePredicate {
  boolean test(double value);

  default DoublePredicate and(DoublePredicate other) {
    assert other != null;
    return (value) -> DoublePredicate.this.test(value) && other.test(value);
  }

  default DoublePredicate negate() {
    return (value) -> !DoublePredicate.this.test(value);
  }

  default DoublePredicate or(DoublePredicate other) {
    assert other != null;
    return (value) -> DoublePredicate.this.test(value) || other.test(value);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy