public class LongAvgMapStat extends MapStat<Long,LongAvg>
LongAvg values which can be looked
up with a String key, and that returns results as a formatted string.definition| Constructor and Description |
|---|
LongAvgMapStat(StatGroup group,
StatDefinition definition)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
LongAvgMapStat |
computeInterval(Stat<String> base)
Compute interval value with respect to the base value.
|
LongAvgMapStat |
copy()
Returns a copy of this statistic.
|
LongAvg |
createStat(String key)
Creates, stores, and returns a new stat for the specified key.
|
void |
negate()
Negate the value.
|
add, clear, copyAndClear, get, getFormattedValue, getMap, isNotSet, removeStat, setcopyAndAdd, getDefinition, toString, toStringVerbosepublic LongAvgMapStat(StatGroup group, StatDefinition definition)
group - the owning groupdefinition - the associated definitionIllegalArgumentException - if the stat definition type is not
INCREMENTALpublic LongAvg createStat(String key)
key - the keypublic LongAvgMapStat copy()
BaseStatpublic LongAvgMapStat computeInterval(Stat<String> base)
computeInterval in class Stat<String>IllegalArgumentException - if argument is not a LongAvgMapStatCopyright © 2024. All rights reserved.