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