Package com.storedobject.common
Class ParallelAccumulator<T>
java.lang.Object
com.storedobject.common.Accumulator<T>
com.storedobject.common.ParallelAccumulator<T>
- Type Parameters:
T
- Value type.
A class that provides multithreaded synchronized Accumulator functionality
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.common.Accumulator
get
-
Constructor Details
-
ParallelAccumulator
Constructor- Parameters:
accumulator
- A BiFunction that accepts the arguments and return value is of type T.
-
-
Method Details
-
accept
Description copied from class:Accumulator
Accepts values for calculation- Overrides:
accept
in classAccumulator<T>
- Parameters:
value
- A value restricted to a specific type T.
-