T
- the value type@FunctionalInterface
public interface Consumer<T>
Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Consume the given value.
|
void accept(T t) throws java.lang.Throwable
t
- the valuejava.lang.Throwable
- if the implementation wishes to throw any type of exception