@FunctionalInterface
public interface ThrowingConsumer<T>
Consumer which can throw Exceptions.
Used to expand the allowed set of method references to be used by Java 8 functional interfaces.
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t) |
void accept(T t) throws java.lang.Exception
java.lang.Exception