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