|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.utilint.Stat<Integer>
com.sleepycat.je.utilint.IntStat
public class IntStat
An integer JE stat.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.utilint.Stat |
---|
definition, FORMAT |
Constructor Summary | |
---|---|
IntStat(StatGroup group,
StatDefinition definition)
|
|
IntStat(StatGroup group,
StatDefinition definition,
int counter)
|
Method Summary | |
---|---|
void |
add(int count)
|
void |
add(Stat<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. |
Integer |
get()
|
protected 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(Integer newValue)
Set the stat value. |
Methods inherited from class com.sleepycat.je.utilint.Stat |
---|
copy, copyAndClear, getDefinition, toString, toStringVerbose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntStat(StatGroup group, StatDefinition definition)
public IntStat(StatGroup group, StatDefinition definition, int counter)
Method Detail |
---|
public Integer get()
get
in class Stat<Integer>
public void set(Integer newValue)
Stat
set
in class Stat<Integer>
public void increment()
public void add(int count)
public void add(Stat<Integer> otherStat)
Stat
add
in class Stat<Integer>
public void clear()
Stat
clear
in class Stat<Integer>
protected String getFormattedValue()
Stat
getFormattedValue
in class Stat<Integer>
public boolean isNotSet()
Stat
isNotSet
in class Stat<Integer>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |