T - input data typepublic interface Consumer<T>
java.util.function.Consumer and provided here
for compatibility with Java 7.| Modifier and Type | Method and Description |
|---|---|
void |
accept(T item)
Performs the operation on the given input
|
void accept(T item)
item - the input argument