- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
Predicate that allows for checked exceptions.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Predicate<T>sneaky(CheckedPredicate<T> predicate) booleanEvaluates this predicate on the given argument.static <T> Predicate<T>unchecked(CheckedPredicate<T> predicate) static <T> Predicate<T>unchecked(CheckedPredicate<T> function, Consumer<Throwable> handler)
-
Method Details
-
test
Evaluates this predicate on the given argument.- Parameters:
t- the input argument- Returns:
trueif the input argument matches the predicate, otherwisefalse- Throws:
Throwable
-
sneaky
-
unchecked
-
unchecked
-