public class DefaultSimpleStat extends Object implements SimpleStat
SimpleStat
implementation.Constructor and Description |
---|
DefaultSimpleStat() |
Modifier and Type | Method and Description |
---|---|
long |
count() |
long |
getAverage(long defaultValue) |
long |
getMax(long defaultValue) |
long |
getMin(long defaultValue) |
void |
record(long value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEmpty
public void record(long value)
record
in interface SimpleStat
public long getMin(long defaultValue)
getMin
in interface SimpleStat
public long getMax(long defaultValue)
getMax
in interface SimpleStat
public long getAverage(long defaultValue)
getAverage
in interface SimpleStat
public long count()
count
in interface SimpleStat
Copyright © 2021 JBoss by Red Hat. All rights reserved.