@ThreadSafe public abstract class AbstractStatisticsHandlerKeyedNumeric extends Object implements IStatisticsHandlerKeyedNumeric
| Constructor and Description |
|---|
AbstractStatisticsHandlerKeyedNumeric() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addValue(String sKey,
long nValue) |
ICommonsSet<String> |
getAllKeys() |
long |
getAverage(String sKey) |
int |
getInvocationCount() |
int |
getInvocationCount(String sKey)
Get the invocation count for a single key.
|
long |
getMax(String sKey) |
long |
getMin(String sKey) |
BigInteger |
getSum(String sKey) |
public AbstractStatisticsHandlerKeyedNumeric()
@Nonnegative public final int getInvocationCount()
getInvocationCount in interface IStatisticsHandler@Nonnull @ReturnsMutableCopy public ICommonsSet<String> getAllKeys()
getAllKeys in interface IStatisticsHandlerKeyednull.@CheckForSigned public final int getInvocationCount(@Nullable String sKey)
IStatisticsHandlerKeyedgetInvocationCount in interface IStatisticsHandlerKeyedsKey - The key to be queried. May be null.CGlobal.ILLEGAL_UINT if no such key
exists@Nullable public final BigInteger getSum(@Nullable String sKey)
getSum in interface IStatisticsHandlerKeyedNumericsKey - The key to be queried.null if no such key
exists.@CheckForSigned public final long getMin(@Nullable String sKey)
getMin in interface IStatisticsHandlerKeyedNumericsKey - The key to be queried.CGlobal.ILLEGAL_ULONG if no such key
exists.@CheckForSigned public final long getAverage(@Nullable String sKey)
getAverage in interface IStatisticsHandlerKeyedNumericsKey - The key to be queried.CGlobal.ILLEGAL_ULONG if no such key
exists.@CheckForSigned public long getMax(@Nullable String sKey)
getMax in interface IStatisticsHandlerKeyedNumericsKey - The key to be queried.CGlobal.ILLEGAL_ULONG if no such key
exists.Copyright © 2014–2020 Philip Helger. All rights reserved.