Interface StatisticGatherer
- All Known Implementing Classes:
StatisticGatherer.CountUnique
,StatisticGatherer.Mean
,StatisticGatherer.Median
,StatisticGatherer.Sum
public interface StatisticGatherer
A simple way of calculating statistics
- Since:
- v3.11
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
static class
static class
Using some trickiness - we extend Number so that we can callStatisticGatherer.MeanValue.intValue()
without having to change all the client codestatic class
static class
static class
-
Method Summary
-
Method Details
-
getValue
Returns current value. If null, the return value will be the 0.- Parameters:
current
- The current value. If null, the return value will be the equivalent of 0newValue
- The value to add to the current- Returns:
- The new value - guaranteed not to be null
-