T
- the type of the input to the operationpublic interface Consumer<T>
Consumer
is expected
to operate via side-effects.
This is a functional interface
whose functional method is accept(Object)
.
Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Performs this operation on the given argument.
|
void accept(T t)
t
- the input argumentCopyright © 2016. All rights reserved.