public interface

StatisticGatherer

com.atlassian.jira.issue.statistics.StatisticGatherer
Known Indirect Subclasses

Class Overview

A simple way of calculating statistics

Summary

Nested Classes
class StatisticGatherer.CountUnique  
class StatisticGatherer.CountUniqueValue  
class StatisticGatherer.Mean  
class StatisticGatherer.MeanValue Using some trickiness - we extend Number so that we can call intValue() without having to change all the client code  
class StatisticGatherer.Median  
class StatisticGatherer.MedianValue  
class StatisticGatherer.Sum  
Public Methods
Number getValue(Number current, int newValue)
Returns current value.

Public Methods

public Number getValue (Number current, int newValue)

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 0
newValue The value to add to the current
Returns
  • The new value - guaranteed not to be null