Package com.chutneytesting.tools
Interface ThrowingConsumer<T>
-
- 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 ThrowingConsumer<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(T var1)static <T> Consumer<T>silence(ThrowingConsumer<T> throwingConsumer, Consumer<Exception> exceptionHandler)static <T> Consumer<T>toUnchecked(ThrowingConsumer<T> throwingConsumer)
-
-
-
Method Detail
-
toUnchecked
static <T> Consumer<T> toUnchecked(ThrowingConsumer<T> throwingConsumer) throws UncheckedException
- Throws:
UncheckedException- if givenThrowingFunctionthrows
-
silence
static <T> Consumer<T> silence(ThrowingConsumer<T> throwingConsumer, Consumer<Exception> exceptionHandler)
-
-