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