Package com.tangosol.util
Class NullImplementation.NullCollector<V>
- java.lang.Object
-
- com.tangosol.util.NullImplementation.NullCollector<V>
-
- Type Parameters:
V
- the value type
- All Implemented Interfaces:
Collector<V>
- Enclosing class:
- NullImplementation
public static class NullImplementation.NullCollector<V> extends Object implements Collector<V>
ACollector
implementation that does nothing.
-
-
Field Summary
Fields Modifier and Type Field Description static NullImplementation.NullCollector
INSTANCE
Singleton (unchecked) instance of a Collector.
-
Constructor Summary
Constructors Constructor Description NullCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Field Detail
-
INSTANCE
public static final NullImplementation.NullCollector INSTANCE
Singleton (unchecked) instance of a Collector.
-
-
Method Detail
-
add
public void add(V value)
Notify the collector of a item of interest.
-
flush
public void flush()
Request processing of any added values.This method should be called after a call or series of calls to
Collector.add(V)
.
-
-