public class CollectConsumer<T> extends java.lang.Object implements Consumer<T>, java.util.function.Consumer<T>
EMPTY_CONSUMER| Constructor and Description |
|---|
CollectConsumer() |
CollectConsumer(java.util.Collection<T> result) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t) |
void |
consume(T t) |
java.util.Collection<T> |
getResult() |
public CollectConsumer(java.util.Collection<T> result)
public CollectConsumer()
public java.util.Collection<T> getResult()
public void 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 nulls to the consumer use NullableConsumer instead