Package com.helger.commons.statistics
Interface IStatisticsHandlerNumeric
-
- All Superinterfaces:
IStatisticsHandler
- All Known Subinterfaces:
IMutableStatisticsHandlerSize,IMutableStatisticsHandlerTimer,IStatisticsHandlerSize,IStatisticsHandlerTimer
- All Known Implementing Classes:
AbstractStatisticsHandlerNumeric,StatisticsHandlerSize,StatisticsHandlerTimer
public interface IStatisticsHandlerNumeric extends IStatisticsHandler
Base interface for size and timer handler.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAverage()longgetMax()longgetMin()BigIntegergetSum()-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandler
getInvocationCount
-
-
-
-
Method Detail
-
getSum
@Nonnull BigInteger getSum()
- Returns:
- The sum of aggregated values.
-
getMin
@CheckForSigned long getMin()
- Returns:
- The smallest value. Returns
CGlobal.ILLEGAL_ULONGif the invocation count is 0.
-
getAverage
@CheckForSigned long getAverage()
- Returns:
- The average value (=sum/invocationCount). Returns
CGlobal.ILLEGAL_ULONGif the invocation count is 0 to avoid a division by 0.
-
getMax
@CheckForSigned long getMax()
- Returns:
- The biggest value. Returns
CGlobal.ILLEGAL_ULONGif the invocation count is 0.
-
-