com.atlassian.jira.issue.statistics
Class StatisticGatherer.Sum

java.lang.Object
  extended by com.atlassian.jira.issue.statistics.StatisticGatherer.Sum
All Implemented Interfaces:
StatisticGatherer
Enclosing interface:
StatisticGatherer

public static class StatisticGatherer.Sum
extends Object
implements StatisticGatherer


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.statistics.StatisticGatherer
StatisticGatherer.Mean, StatisticGatherer.MeanValue, StatisticGatherer.Median, StatisticGatherer.MedianValue, StatisticGatherer.Sum
 
Constructor Summary
StatisticGatherer.Sum()
           
 
Method Summary
 Number getValue(Number current, int newValue)
          Returns current value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticGatherer.Sum

public StatisticGatherer.Sum()
Method Detail

getValue

public Number getValue(Number current,
                       int newValue)
Description copied from interface: StatisticGatherer
Returns current value. If null, the return value will be the 0.

Specified by:
getValue in interface StatisticGatherer
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


Copyright © 2002-2008 Atlassian. All Rights Reserved.