public class LongMaxStat extends LongStat
definition| Constructor and Description |
|---|
LongMaxStat(StatGroup group,
StatDefinition definition) |
LongMaxStat(StatGroup group,
StatDefinition definition,
long counter) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Resets the statistic to its initial state.
|
Stat<Long> |
computeInterval(Stat<Long> base)
Compute interval value with respect to the base value.
|
protected String |
getFormattedValue()
Returns the value of the statistic as a formatted string.
|
boolean |
isNotSet()
Returns whether the statistic is in its initial state.
|
void |
negate()
Negate the value.
|
boolean |
setMax(long newValue)
Set stat to MAX(current stat value, newValue).
|
add, add, get, getValueType, increment, max, setgetForTypecopy, copyAndAdd, copyAndClear, getDefinition, toString, toStringVerbosepublic LongMaxStat(StatGroup group, StatDefinition definition)
public LongMaxStat(StatGroup group, StatDefinition definition, long counter)
public void clear()
BaseStatpublic boolean setMax(long newValue)
public Stat<Long> computeInterval(Stat<Long> base)
StatcomputeInterval in class LongStatpublic void negate()
Statprotected String getFormattedValue()
BaseStatgetFormattedValue in class LongStatCopyright © 2024. All rights reserved.