public class AtomicIntStat extends Stat<java.lang.Integer> implements java.lang.Cloneable
definition, FORMAT
Constructor and Description |
---|
AtomicIntStat(StatGroup group,
StatDefinition definition) |
Modifier and Type | Method and Description |
---|---|
void |
add(int count) |
void |
add(Stat<java.lang.Integer> 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.
|
AtomicIntStat |
copy() |
java.lang.Integer |
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.Integer newValue)
Set the stat value.
|
copyAndClear, getDefinition, toString, toStringVerbose
public AtomicIntStat(StatGroup group, StatDefinition definition)
public java.lang.Integer get()
public void set(java.lang.Integer newValue)
Stat
public void increment()
public void add(int count)
public void add(Stat<java.lang.Integer> other)
Stat
public void clear()
Stat
public AtomicIntStat copy()
protected java.lang.String getFormattedValue()
Stat
getFormattedValue
in class Stat<java.lang.Integer>
Copyright (c) 2004-2012 Oracle. All rights reserved.