public abstract class AbstractSlidingWindowAccumulator<T> extends Object implements Accumulator<T>
Constructor and Description |
---|
AbstractSlidingWindowAccumulator(int windowSize)
Creates a new accumulator with the sliding window of a given size.
|
Modifier and Type | Method and Description |
---|---|
void |
add(T value)
Adds a value to the accumulator.
|
void |
reset()
Resets the accumulator to the default state.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResult
public AbstractSlidingWindowAccumulator(int windowSize)
windowSize
- Size of the sliding window.public void add(T value)
Accumulator
add
in interface Accumulator<T>
value
- The value to be accumulated.public void reset()
Accumulator
reset
in interface Accumulator<T>
Copyright © 2010–2017 PerfCake Community. All rights reserved.