Package com.helger.commons.statistics
Class StatisticsHandlerKeyedSize
- java.lang.Object
-
- com.helger.commons.statistics.AbstractStatisticsHandlerKeyedNumeric
-
- com.helger.commons.statistics.StatisticsHandlerKeyedSize
-
- All Implemented Interfaces:
IMutableStatisticsHandlerKeyedSize,IStatisticsHandler,IStatisticsHandlerKeyed,IStatisticsHandlerKeyedNumeric,IStatisticsHandlerKeyedSize
@ThreadSafe public class StatisticsHandlerKeyedSize extends AbstractStatisticsHandlerKeyedNumeric implements IMutableStatisticsHandlerKeyedSize
Default implementation ofIMutableStatisticsHandlerKeyedSize- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description StatisticsHandlerKeyedSize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSize(String sKey, long nSize)Add a new size-
Methods inherited from class com.helger.commons.statistics.AbstractStatisticsHandlerKeyedNumeric
addValue, getAllKeys, getAverage, getInvocationCount, 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.IStatisticsHandlerKeyed
getAllKeys, getInvocationCount
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandlerKeyedNumeric
getAverage, getMax, getMin, getSum
-
-
-
-
Method Detail
-
addSize
public void addSize(@Nullable String sKey, @Nonnegative long nSize)
Description copied from interface:IMutableStatisticsHandlerKeyedSizeAdd a new size- Specified by:
addSizein interfaceIMutableStatisticsHandlerKeyedSize- Parameters:
sKey- The key to be incremented.nSize- The size to be added. Must be ≥ 0 as sizes cannot be negative.
-
-