private static class Aggregators.FilterConsumer<C extends IItemConsumer<C>> extends java.lang.Object implements IItemConsumer<Aggregators.FilterConsumer<C>>
| Modifier and Type | Field and Description |
|---|---|
private C |
nestedConsumer |
private java.util.function.Predicate<IItem> |
p |
| Constructor and Description |
|---|
FilterConsumer(java.util.function.Predicate<IItem> p,
C nestedConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(IItem item)
Consumes another item.
|
Aggregators.FilterConsumer<C> |
merge(Aggregators.FilterConsumer<C> other)
Merges this object with the supplied object.
|
private final java.util.function.Predicate<IItem> p
private final C extends IItemConsumer<C> nestedConsumer
public void consume(IItem item)
IItemConsumerconsume in interface IItemConsumer<Aggregators.FilterConsumer<C extends IItemConsumer<C>>>public Aggregators.FilterConsumer<C> merge(Aggregators.FilterConsumer<C> other)
IItemConsumermerge in interface IItemConsumer<Aggregators.FilterConsumer<C extends IItemConsumer<C>>>other - another instance to merge with