T - the type of values to acceptpublic interface Consumer<T>
This is a copy of Java 8 Consumer interface.
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t)
Execute the logic of the action, accepting the given parameter.
|
void accept(T t)
t - The parameter to pass to the consumer.