Package com.helger.commons.statistics
Interface IStatisticsHandlerKeyedNumeric
-
- All Superinterfaces:
IStatisticsHandler,IStatisticsHandlerKeyed
- All Known Subinterfaces:
IMutableStatisticsHandlerKeyedSize,IMutableStatisticsHandlerKeyedTimer,IStatisticsHandlerKeyedSize,IStatisticsHandlerKeyedTimer
- All Known Implementing Classes:
AbstractStatisticsHandlerKeyedNumeric,StatisticsHandlerKeyedSize,StatisticsHandlerKeyedTimer
public interface IStatisticsHandlerKeyedNumeric extends IStatisticsHandlerKeyed
Base interface for size and timer handler.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAverage(String sKey)longgetMax(String sKey)longgetMin(String sKey)BigIntegergetSum(String sKey)-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandler
getInvocationCount
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandlerKeyed
getAllKeys, getInvocationCount
-
-
-
-
Method Detail
-
getSum
@Nullable BigInteger getSum(@Nullable String sKey)
- Parameters:
sKey- The key to be queried.- Returns:
- The sum of aggregated values.
nullif no such key exists.
-
getMin
@CheckForSigned long getMin(@Nullable String sKey)
- Parameters:
sKey- The key to be queried.- Returns:
- The smallest value. Returns
CGlobal.ILLEGAL_ULONGif no such key exists.
-
getAverage
@CheckForSigned long getAverage(@Nullable String sKey)
- Parameters:
sKey- The key to be queried.- Returns:
- The average value (=sum/invocationCount). Returns
CGlobal.ILLEGAL_ULONGif no such key exists.
-
getMax
@CheckForSigned long getMax(@Nullable String sKey)
- Parameters:
sKey- The key to be queried.- Returns:
- The biggest value. Returns
CGlobal.ILLEGAL_ULONGif no such key exists.
-
-