public class IntStat extends Stat<java.lang.Integer>
definition, FORMAT| Constructor and Description |
|---|
IntStat(StatGroup group,
StatDefinition definition) |
IntStat(StatGroup group,
StatDefinition definition,
int counter) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int count) |
void |
add(Stat<java.lang.Integer> otherStat)
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.
|
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.
|
copy, copyAndClear, getDefinition, toString, toStringVerbosepublic IntStat(StatGroup group, StatDefinition definition)
public IntStat(StatGroup group, StatDefinition definition, int counter)
public java.lang.Integer get()
public void set(java.lang.Integer newValue)
Statpublic void increment()
public void add(int count)
public void add(Stat<java.lang.Integer> otherStat)
Statpublic void clear()
Statprotected java.lang.String getFormattedValue()
StatgetFormattedValue in class Stat<java.lang.Integer>Copyright (c) 2004-2012 Oracle. All rights reserved.