public class LongMaxStat extends LongStat
definition, FORMAT
Constructor and Description |
---|
LongMaxStat(StatGroup group,
StatDefinition definition) |
LongMaxStat(StatGroup group,
StatDefinition definition,
long counter) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Initialize the stat to the proper value at startup, or reset the
stat when copyAndClear() is called.
|
protected java.lang.String |
getFormattedValue()
Return a string with the stat value formatted as appropriate for
its type.
|
boolean |
setMax(long newValue)
Set stat to MAX(current stat value, newValue).
|
add, add, get, increment, isNotSet, set
copy, copyAndClear, getDefinition, toString, toStringVerbose
public LongMaxStat(StatGroup group, StatDefinition definition)
public LongMaxStat(StatGroup group, StatDefinition definition, long counter)
public void clear()
Stat
public boolean setMax(long newValue)
protected java.lang.String getFormattedValue()
Stat
getFormattedValue
in class LongStat
Copyright (c) 2004-2012 Oracle. All rights reserved.