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