public interface Accumulator<T>
Modifier and Type | Method and Description |
---|---|
void |
add(T value)
Adds a value to the accumulator.
|
T |
getResult()
Gets the accumulated result of currently added values.
|
void |
reset()
Resets the accumulator to the default state.
|
void add(T value)
value
- The value to be accumulated.T getResult()
void reset()
Copyright © 2010–2017 PerfCake Community. All rights reserved.