public class LongAvg extends MapStatComponent<Long,LongAvg>
| Constructor and Description |
|---|
LongAvg() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long value) |
void |
add(LongAvg other) |
void |
clear()
Resets the statistic to its initial state.
|
LongAvg |
copy()
Narrow the return type to the component type.
|
Long |
get()
Returns the value of the statistic.
|
protected String |
getFormattedValue(boolean useCommas)
Returns the value of the statistic as a formatted string, either using
or not using commas as requested.
|
boolean |
isNotSet()
Returns whether the statistic is in its initial state.
|
void |
negate() |
String |
toString() |
void |
updateInterval(LongAvg other)
Updates the values in this instance to represent the difference between
the values stored in this instance and the ones in the argument.
|
getFormattedValuepublic void add(long value)
public void add(LongAvg other)
public void updateInterval(LongAvg other)
public void negate()
protected String getFormattedValue(boolean useCommas)
MapStatComponentgetFormattedValue in class MapStatComponent<Long,LongAvg>useCommas - whether to use commaspublic LongAvg copy()
MapStatComponentcopy in class MapStatComponent<Long,LongAvg>public void clear()
BaseStatpublic boolean isNotSet()
BaseStatCopyright © 2024. All rights reserved.