com.sleepycat.je.utilint
Class FloatStat

java.lang.Object
  extended by com.sleepycat.je.utilint.Stat<Float>
      extended by com.sleepycat.je.utilint.FloatStat
All Implemented Interfaces:
Serializable, Cloneable

public class FloatStat
extends Stat<Float>

A Float JE stat.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sleepycat.je.utilint.Stat
definition, FORMAT
 
Constructor Summary
FloatStat(StatGroup group, StatDefinition definition)
           
FloatStat(StatGroup group, StatDefinition definition, float val)
           
 
Method Summary
 void add(Stat<Float> 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.
 Float 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(Float 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

FloatStat

public FloatStat(StatGroup group,
                 StatDefinition definition)

FloatStat

public FloatStat(StatGroup group,
                 StatDefinition definition,
                 float val)
Method Detail

get

public Float get()
Specified by:
get in class Stat<Float>
Returns:
the stat value.

set

public void set(Float newValue)
Description copied from class: Stat
Set the stat value.

Specified by:
set in class Stat<Float>

add

public void add(Stat<Float> otherStat)
Description copied from class: Stat
Add the value of "other" to this stat.

Specified by:
add in class Stat<Float>

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<Float>

getFormattedValue

protected 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<Float>

isNotSet

public boolean isNotSet()
Description copied from class: Stat
Returns true if this stat is zero or null, as is appropriate for its type.

Specified by:
isNotSet in class Stat<Float>


Copyright (c) 2004-2012 Oracle. All rights reserved.