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.
@FunctionalInterface public interface ThrowingPredicate<T,E extends Exception>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T,E extends Exception>
Predicate<T>silence(ThrowingPredicate<T,E> throwingFunction, Function<Exception,Boolean> exceptionHandler)booleantest(T t)static <T,E extends Exception>
Predicate<T>toUnchecked(ThrowingPredicate<T,E> throwingFunction)
-
-
-
Method Detail
-
toUnchecked
static <T,E extends Exception> Predicate<T> toUnchecked(ThrowingPredicate<T,E> throwingFunction) throws UncheckedException
- Throws:
UncheckedException- if givenThrowingPredicatethrows
-
-