public static class Aggregators.SetConsumer<T> extends java.lang.Object implements IItemConsumer<Aggregators.SetConsumer<T>>
| Modifier and Type | Field and Description |
|---|---|
private IMemberAccessor<? extends T,IItem> |
accessor |
(package private) java.util.Set<T> |
distinct |
| Constructor and Description |
|---|
SetConsumer(IMemberAccessor<? extends T,IItem> accessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(IItem item)
Consumes another item.
|
Aggregators.SetConsumer<T> |
merge(Aggregators.SetConsumer<T> other)
Merges this object with the supplied object.
|
java.util.Set<T> distinct
private final IMemberAccessor<? extends T,IItem> accessor
public SetConsumer(IMemberAccessor<? extends T,IItem> accessor)
public void consume(IItem item)
IItemConsumerconsume in interface IItemConsumer<Aggregators.SetConsumer<T>>public Aggregators.SetConsumer<T> merge(Aggregators.SetConsumer<T> other)
IItemConsumermerge in interface IItemConsumer<Aggregators.SetConsumer<T>>other - another instance to merge with