public class MaximumIntValueSinceLastRead extends AbstractMValue
addValue(int)
. If the maximum value is read with getMaximumValueAndReset()
it is reset to 0.
However, if no value was added since the last read the last value added is returned.Constructor and Description |
---|
MaximumIntValueSinceLastRead(String name) |
MaximumIntValueSinceLastRead(String name,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(int value) |
int |
getMaximumValueAndReset()
Gets the maximum value added with
addValue(int) since the last call to this method. |
getCapitalizedName, getDescription, getName
public MaximumIntValueSinceLastRead(String name)
public void addValue(int value)
public int getMaximumValueAndReset()
addValue(int)
since the last call to this method.
If no value was added since the last call then the last value that was added with addValue(int)
(a.k.a the current value) is returned.Copyright © 2016 AXON IVY AG. All rights reserved.