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

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

The newest version!
package java.util.function;

@FunctionalInterface
public interface IntPredicate {

  boolean test(int value);

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy