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

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

The newest version!
package java.util.function;

@FunctionalInterface
public interface LongPredicate {

  boolean test(long value);

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy