public static class Aggregators.CountConsumer extends java.lang.Object implements IItemConsumer<Aggregators.CountConsumer>
Modifier and Type | Field and Description |
---|---|
private int |
count |
Constructor and Description |
---|
CountConsumer() |
Modifier and Type | Method and Description |
---|---|
void |
consume(IItem item)
Consumes another item.
|
int |
getCount() |
Aggregators.CountConsumer |
merge(Aggregators.CountConsumer other)
Merges this object with the supplied object.
|
public void consume(IItem item)
IItemConsumer
consume
in interface IItemConsumer<Aggregators.CountConsumer>
public Aggregators.CountConsumer merge(Aggregators.CountConsumer other)
IItemConsumer
merge
in interface IItemConsumer<Aggregators.CountConsumer>
other
- another instance to merge withpublic int getCount()