public class LongStat extends Stat<java.lang.Long>
Modifier and Type | Field and Description |
---|---|
protected long |
counter |
definition, FORMAT
Constructor and Description |
---|
LongStat(StatGroup group,
StatDefinition definition) |
LongStat(StatGroup group,
StatDefinition definition,
long counter) |
Modifier and Type | Method and Description |
---|---|
void |
add(long count) |
void |
add(Stat<java.lang.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.
|
java.lang.Long |
get() |
protected java.lang.String |
getFormattedValue()
Return a string with the stat value formatted as appropriate for
its type.
|
void |
increment() |
boolean |
isNotSet()
Returns true if this stat is zero or null, as is appropriate for its
type.
|
void |
set(java.lang.Long newValue)
Set the stat value.
|
copy, copyAndClear, getDefinition, toString, toStringVerbose
public LongStat(StatGroup group, StatDefinition definition)
public LongStat(StatGroup group, StatDefinition definition, long counter)
public java.lang.Long get()
public void set(java.lang.Long newValue)
Stat
public void increment()
public void add(long count)
public void add(Stat<java.lang.Long> other)
Stat
public void clear()
Stat
protected java.lang.String getFormattedValue()
Stat
getFormattedValue
in class Stat<java.lang.Long>
Copyright (c) 2004-2012 Oracle. All rights reserved.