org.davidmoten.kool.function.BiPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kool Show documentation
Show all versions of kool Show documentation
Streaming library supporting reuse and many operators
package org.davidmoten.kool.function;
import org.davidmoten.kool.internal.util.Exceptions;
@FunctionalInterface
public interface BiPredicate {
boolean test(T t, R r) throws Exception;
default boolean testUnchecked(T t, R r) {
try {
return test(t, r);
} catch (Exception e) {
return Exceptions.rethrow(e);
}
}
}