public class StringStat extends Stat<String>
definition| Constructor and Description |
|---|
StringStat(StatGroup group,
StatDefinition definition) |
StringStat(StatGroup group,
StatDefinition definition,
String initialValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Stat<String> otherStat)
Add the value of "other" to this stat.
|
void |
clear()
Resets the statistic to its initial state.
|
Stat<String> |
computeInterval(Stat<String> base)
Compute interval value with respect to the base value.
|
String |
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(String newValue)
Set the stat value.
|
copy, copyAndAdd, copyAndClear, getDefinition, toString, toStringVerbosepublic StringStat(StatGroup group, StatDefinition definition)
public StringStat(StatGroup group, StatDefinition definition, String initialValue)
public void add(Stat<String> otherStat)
Statpublic Stat<String> computeInterval(Stat<String> base)
StatcomputeInterval in class Stat<String>public void negate()
Statpublic void clear()
BaseStatprotected String getFormattedValue()
BaseStatgetFormattedValue in class BaseStat<String>Copyright © 2024. All rights reserved.