@FunctionalInterface
public interface ThrowsConsumer<T>
Consumer
The main difference between Consumer and ThrowsConsumer is that this one can
throw an exception
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T input)
Performs this operation on the given argument.
|
void accept(T input) throws java.lang.Throwable
input - the input argumentjava.lang.Throwable - Any checked or unchecked exception or throwable