You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any reason that CheckedPredicate cannot be replaced with java.util.function.Predicate? The former seems like a simplified version of the latter.
The text was updated successfully, but these errors were encountered:
The signature of the CheckedPredicate::test method is
booleantest(Tt) throwsThrowable;
and for plain Predicate::test, it is just
booleantest(Tt);
They are both functional interfaces, though. You can use a lambda or method reference that conforms to java.util.function.Predicate in contexts that accept a CheckedPredicate, but the latter allows you to write handlers that throw checked exceptions, e.g.,
Is there any reason that
CheckedPredicate
cannot be replaced withjava.util.function.Predicate
? The former seems like a simplified version of the latter.The text was updated successfully, but these errors were encountered: