public class LongArrayStat extends Stat<long[]>
Modifier and Type | Field and Description |
---|---|
protected long[] |
array |
definition, FORMAT
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()
Initialize the stat to the proper value at startup, or reset the
stat when copyAndClear() is called.
|
LongArrayStat |
copy() |
long[] |
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(long[] array)
Set the stat value.
|
copyAndClear, getDefinition, toString, toStringVerbose
public LongArrayStat(StatGroup group, StatDefinition definition)
public LongArrayStat(StatGroup group, StatDefinition definition, long[] array)
public void set(long[] array)
Stat
public void add(Stat<long[]> other)
Stat
public void clear()
Stat
public LongArrayStat copy()
protected java.lang.String getFormattedValue()
Stat
getFormattedValue
in class Stat<long[]>
Copyright (c) 2004-2012 Oracle. All rights reserved.