com.atlassian.jira.web.bean
Class StatisticMapWrapper

java.lang.Object
  extended by java.util.AbstractMap
      extended by com.atlassian.jira.web.bean.StatisticMapWrapper
All Implemented Interfaces:
Map

public class StatisticMapWrapper
extends AbstractMap

This is used to store the statistics retrieved by the StatisticAccessorBean. Formerly an inner class in StatisticAccessorBean. Should be moved out as it is accessed by tests Since stats are accessed through this object, it should be made public to allow other classes access to stats generated by the stat bean


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
StatisticMapWrapper(Map statistics, long totalCount)
           
 
Method Summary
 Set entrySet()
           
 long getLargestPercentage()
           
 long getNullKeyValue()
           
 long getPercentage(Object key)
           
protected  Map getPercentages()
           
 Map getStatistics()
           
 long getTotalCount()
          Return the total number of issues that were matched.
 void setStatistics(Map statistics)
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatisticMapWrapper

public StatisticMapWrapper(Map statistics,
                           long totalCount)
Method Detail

getStatistics

public Map getStatistics()

getPercentages

protected Map getPercentages()

setStatistics

public void setStatistics(Map statistics)

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

getTotalCount

public long getTotalCount()
Return the total number of issues that were matched.

Returns:
total number of issues that were matched.

getLargestPercentage

public long getLargestPercentage()

getPercentage

public long getPercentage(Object key)

getNullKeyValue

public long getNullKeyValue()


Copyright © 2002-2009 Atlassian. All Rights Reserved.