|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.utilint.Stat<String>
com.sleepycat.je.utilint.StringStat
public class StringStat
A stat that saves a string; a way to save general information for later display and access.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.utilint.Stat |
---|
definition, FORMAT |
Constructor Summary | |
---|---|
StringStat(StatGroup group,
StatDefinition definition)
|
|
StringStat(StatGroup group,
StatDefinition definition,
String initialValue)
|
Method Summary | |
---|---|
void |
add(Stat<String> 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. |
String |
get()
|
protected String |
getFormattedValue()
Return a string with the stat value formatted as appropriate for its type. |
boolean |
isNotSet()
Returns true if this stat is zero or null, as is appropriate for its type. |
void |
set(String 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 StringStat(StatGroup group, StatDefinition definition)
public StringStat(StatGroup group, StatDefinition definition, String initialValue)
Method Detail |
---|
public String get()
get
in class Stat<String>
public void set(String newValue)
Stat
set
in class Stat<String>
public void add(Stat<String> otherStat)
Stat
add
in class Stat<String>
public void clear()
Stat
clear
in class Stat<String>
protected String getFormattedValue()
Stat
getFormattedValue
in class Stat<String>
public boolean isNotSet()
Stat
isNotSet
in class Stat<String>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |