public class SynchronizedCollectConsumer<T> extends CollectConsumer<T>
EMPTY_CONSUMER| Constructor and Description |
|---|
SynchronizedCollectConsumer() |
SynchronizedCollectConsumer(java.util.Collection<T> result) |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(T t) |
java.util.Collection<T> |
getResult() |
acceptpublic SynchronizedCollectConsumer(java.util.Collection<T> result)
public SynchronizedCollectConsumer()
public void consume(T t)
consume in class CollectConsumer<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 insteadpublic java.util.Collection<T> getResult()
getResult in class CollectConsumer<T>