Instances of this class is created for a given capacity. At most capacity() number of entries can be added to the accumulator. When the accumulator cannot store the added element, BufferOverflowException will be thrown.
This accumulator can not be used concurrently from multiple threads.
When varying, but large number of elements are to be accumulated, consider using PartitionedEntryAccumulatorArray as that can dynamically allocate the underlying array when necessary.
Creates a new instance for the given capacity.
Adds an element to the accumulator.
Gets the capacity of this accumulator.
Returns an iterator over elements of type
Adds an key-value entry pair to the accumulator.
Gets the current number of accumulated elements in this accumulator.
At most capacity() number of entries can be added to this instance.