public interface Consumer<T>
Consumer
insteadModifier and Type | Field and Description |
---|---|
static Consumer<java.lang.Object> |
EMPTY_CONSUMER
Deprecated.
use
EmptyConsumer.getInstance() instead |
Modifier and Type | Method and Description |
---|---|
void |
consume(T t) |
@Deprecated static final Consumer<java.lang.Object> EMPTY_CONSUMER
EmptyConsumer.getInstance()
insteadvoid consume(T t)
t
- consequently takes value of each element of the set this processor is passed to for processing.
t is supposed to be a not-null value. If you need to pass null
s to the consumer use NullableConsumer
instead