Package com.yahoo.yolean.function
Interface ThrowingConsumer<T,E extends java.lang.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 java.lang.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)
-
-
-
Method Detail
-
accept
void accept(T input) throws E extends java.lang.Throwable
- Throws:
E extends java.lang.Throwable
-
andThen
default ThrowingConsumer<T,E> andThen(ThrowingConsumer<? super T,? extends E> after)
-
-