public abstract class BaseExtendedStatisticsContainer extends Object implements ExtendedStatisticsContainer
ExtendedStatisticsContainer
Modifier and Type | Field and Description |
---|---|
protected double[] |
stats |
Modifier | Constructor and Description |
---|---|
protected |
BaseExtendedStatisticsContainer(int size) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(ExtendedStatistic statistic,
double value)
it adds the value to the statistic.
|
protected abstract int |
getIndex(ExtendedStatistic statistic) |
double |
getValue(ExtendedStatistic statistic) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mergeTo
protected BaseExtendedStatisticsContainer(int size)
public final void addValue(ExtendedStatistic statistic, double value)
ExtendedStatisticsContainer
addValue
in interface ExtendedStatisticsContainer
public final double getValue(ExtendedStatistic statistic) throws ExtendedStatisticNotFoundException
getValue
in interface ExtendedStatisticsContainer
ExtendedStatisticNotFoundException
- if the statistic was not found in this containerprotected abstract int getIndex(ExtendedStatistic statistic)
ExtendedStatistic.NO_INDEX
if the
statistic does not exist in this containerCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.