Package com.yahoo.yolean.function
Interface ThrowingConsumer<T,E extends Throwable>
-
- 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,E extends Throwable>
Functional interface that mirrors the Consumer interface, but allows for an exception to be thrown.- Author:
- oyving
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(T input)
default ThrowingConsumer<T,E>
andThen(ThrowingConsumer<? super T,? extends E> after)
-