@ThreadSafe public abstract class AbstractStatisticsHandlerNumeric extends Object implements IStatisticsHandlerNumeric
| Constructor and Description |
|---|
AbstractStatisticsHandlerNumeric() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addValue(long nValue) |
long |
getAverage() |
int |
getInvocationCount() |
long |
getMax() |
long |
getMin() |
BigInteger |
getSum() |
@Nonnegative public final int getInvocationCount()
getInvocationCount in interface IStatisticsHandlerprotected final void addValue(long nValue)
@Nonnull public final BigInteger getSum()
getSum in interface IStatisticsHandlerNumeric@CheckForSigned public final long getMin()
getMin in interface IStatisticsHandlerNumericCGlobal.ILLEGAL_ULONG if the invocation
count is 0.@CheckForSigned public final long getAverage()
getAverage in interface IStatisticsHandlerNumericCGlobal.ILLEGAL_ULONG if the invocation
count is 0 to avoid a division by 0.@CheckForSigned public long getMax()
getMax in interface IStatisticsHandlerNumericCGlobal.ILLEGAL_ULONG if the invocation
count is 0.Copyright © 2014–2017 Philip Helger. All rights reserved.