public class AtomicLongComponent extends MapStatComponent<Long,AtomicLongComponent>
| Modifier and Type | Method and Description |
|---|---|
void |
add(long inc)
Adds the specified value.
|
void |
clear()
Resets the statistic to its initial state.
|
AtomicLongComponent |
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 |
set(long newValue)
Sets the stat to the specified value.
|
String |
toString() |
getFormattedValuepublic void set(long newValue)
newValue - the new valuepublic void add(long inc)
inc - the value to add.public void clear()
BaseStatpublic AtomicLongComponent copy()
MapStatComponentcopy in class MapStatComponent<Long,AtomicLongComponent>protected String getFormattedValue(boolean useCommas)
MapStatComponentgetFormattedValue in class MapStatComponent<Long,AtomicLongComponent>useCommas - whether to use commaspublic boolean isNotSet()
BaseStatCopyright © 2024. All rights reserved.