Package com.chutneytesting.tools
Interface ThrowingPredicate<T,E extends Exception>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionsilence(ThrowingPredicate<T, E> throwingFunction, Function<Exception, Boolean> exceptionHandler) booleantoUnchecked(ThrowingPredicate<T, E> throwingFunction)
-
Method Details
-
test
-
toUnchecked
static <T,E extends Exception> Predicate<T> toUnchecked(ThrowingPredicate<T, E> throwingFunction) throws UncheckedException- Throws:
UncheckedException- if givenThrowingPredicatethrows
-
silence
-