com.sleepycat.je.utilint
Class StringStat
java.lang.Object
com.sleepycat.je.utilint.Stat<String>
com.sleepycat.je.utilint.StringStat
- All Implemented Interfaces:
- Cloneable
public class StringStat
- extends Stat<String>
A stat that saves a string; a way to say general information for later
display and access.
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()
|
(package private) String |
getFormattedValue()
Return a string with the stat value formatted as appropriate for
its type. |
void |
set(String newValue)
Set the stat value. |
StringStat
public StringStat(StatGroup group,
StatDefinition definition)
StringStat
public StringStat(StatGroup group,
StatDefinition definition,
String initialValue)
get
public String get()
- Specified by:
get
in class Stat<String>
- Returns:
- the stat value.
set
public void set(String newValue)
- Description copied from class:
Stat
- Set the stat value.
- Specified by:
set
in class Stat<String>
add
public void add(Stat<String> otherStat)
- Description copied from class:
Stat
- Add the value of "other" to this stat.
- Specified by:
add
in class Stat<String>
clear
public void clear()
- Description copied from class:
Stat
- Initialize the stat to the proper value at startup, or reset the
stat when copyAndClear() is called.
- Specified by:
clear
in class Stat<String>
getFormattedValue
String getFormattedValue()
- Description copied from class:
Stat
- Return a string with the stat value formatted as appropriate for
its type.
- Specified by:
getFormattedValue
in class Stat<String>
Copyright (c) 2004-2010 Oracle. All rights reserved.