public class AtomicLongStat extends Stat<java.lang.Long> implements java.lang.Cloneable
definition, FORMAT
Constructor and Description |
---|
AtomicLongStat(StatGroup group,
StatDefinition definition) |
Modifier and Type | Method and Description |
---|---|
void |
add(long count) |
void |
add(Stat<java.lang.Long> other)
Add the value of "other" to this stat.
|
void |
clear()
Initialize the stat to the proper value at startup, or reset the
stat when copyAndClear() is called.
|
AtomicLongStat |
copy() |
void |
decrement() |
java.lang.Long |
get() |
protected java.lang.String |
getFormattedValue()
Return a string with the stat value formatted as appropriate for
its type.
|
void |
increment() |
boolean |
isNotSet()
Returns true if this stat is zero or null, as is appropriate for its
type.
|
void |
set(java.lang.Long newValue)
Set the stat value.
|
copyAndClear, getDefinition, toString, toStringVerbose
public AtomicLongStat(StatGroup group, StatDefinition definition)
public java.lang.Long get()
public void set(java.lang.Long newValue)
Stat
public void increment()
public void decrement()
public void add(long count)
public void add(Stat<java.lang.Long> other)
Stat
public void clear()
Stat
public AtomicLongStat copy()
protected java.lang.String getFormattedValue()
Stat
getFormattedValue
in class Stat<java.lang.Long>
Copyright (c) 2004-2012 Oracle. All rights reserved.