public class FloatStat extends Stat<java.lang.Float>
definition, FORMAT
Constructor and Description |
---|
FloatStat(StatGroup group,
StatDefinition definition) |
FloatStat(StatGroup group,
StatDefinition definition,
float val) |
Modifier and Type | Method and Description |
---|---|
void |
add(Stat<java.lang.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.
|
java.lang.Float |
get() |
protected java.lang.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(java.lang.Float newValue)
Set the stat value.
|
copy, copyAndClear, getDefinition, toString, toStringVerbose
public FloatStat(StatGroup group, StatDefinition definition)
public FloatStat(StatGroup group, StatDefinition definition, float val)
public java.lang.Float get()
public void set(java.lang.Float newValue)
Stat
public void add(Stat<java.lang.Float> otherStat)
Stat
public void clear()
Stat
protected java.lang.String getFormattedValue()
Stat
getFormattedValue
in class Stat<java.lang.Float>
Copyright (c) 2004-2012 Oracle. All rights reserved.