V - the value typepublic static class NullImplementation.NullCollector<V> extends Object implements Collector<V>
Collector implementation that does nothing.| Modifier and Type | Field | Description |
|---|---|---|
static NullImplementation.NullCollector |
INSTANCE |
Singleton (unchecked) instance of a Collector.
|
| Constructor | Description |
|---|---|
NullCollector() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(V value) |
Notify the collector of a item of interest.
|
void |
flush() |
Request processing of any added values.
|
public static final NullImplementation.NullCollector INSTANCE
public void add(V value)
public void flush()
This method should be called after a call or series of calls to Collector.add(V).