Package com.helger.commons.statistics
Class StatisticsHandlerSize
- java.lang.Object
-
- com.helger.commons.statistics.AbstractStatisticsHandlerNumeric
-
- com.helger.commons.statistics.StatisticsHandlerSize
-
- All Implemented Interfaces:
IMutableStatisticsHandlerSize,IStatisticsHandler,IStatisticsHandlerNumeric,IStatisticsHandlerSize
@ThreadSafe public class StatisticsHandlerSize extends AbstractStatisticsHandlerNumeric implements IMutableStatisticsHandlerSize
Default implementation ofIMutableStatisticsHandlerSize- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description StatisticsHandlerSize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSize(long nSize)Add a new size-
Methods inherited from class com.helger.commons.statistics.AbstractStatisticsHandlerNumeric
addValue, getAverage, getInvocationCount, getMax, getMin, getSum
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandler
getInvocationCount
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandlerNumeric
getAverage, getMax, getMin, getSum
-
-
-
-
Method Detail
-
addSize
public void addSize(@Nonnegative long nSize)
Description copied from interface:IMutableStatisticsHandlerSizeAdd a new size- Specified by:
addSizein interfaceIMutableStatisticsHandlerSize- Parameters:
nSize- The size to be added. Must be ≥ 0 as sizes cannot be negative.
-
-