public class BooleanStat extends Stat<Boolean>
definition| Constructor and Description |
|---|
BooleanStat(StatGroup group,
StatDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Stat<Boolean> otherStat)
Add the value of "other" to this stat.
|
void |
clear()
Resets the statistic to its initial state.
|
Stat<Boolean> |
computeInterval(Stat<Boolean> base)
Compute interval value with respect to the base value.
|
Boolean |
get()
Returns the value of the statistic.
|
protected String |
getFormattedValue()
Returns the value of the statistic as a formatted string.
|
boolean |
isNotSet()
Returns whether the statistic is in its initial state.
|
void |
negate()
Negate the value.
|
void |
set(Boolean newValue)
Set the stat value.
|
copy, copyAndAdd, copyAndClear, getDefinition, toString, toStringVerbosepublic BooleanStat(StatGroup group, StatDefinition definition)
public Boolean get()
BaseStatpublic void add(Stat<Boolean> otherStat)
Statpublic void clear()
BaseStatpublic Stat<Boolean> computeInterval(Stat<Boolean> base)
StatcomputeInterval in class Stat<Boolean>public void negate()
Statprotected String getFormattedValue()
BaseStatgetFormattedValue in class BaseStat<Boolean>Copyright © 2024. All rights reserved.