com.atlassian.jira.web.bean
Class StatisticMapWrapper

java.lang.Object
  extended byjava.util.AbstractMap
      extended bycom.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 inherited from class java.util.AbstractMap
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
protected  org.apache.log4j.Category log
           
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
StatisticMapWrapper(Map statistics)
           
 
Method Summary
 Set entrySet()
           
 long getLargestPercentage()
           
 long getNullKeyValue()
           
 long getPercentage(Object key)
           
protected  Map getPercentages()
           
 Map getStatistics()
           
 long getTotal(long total, Map map)
           
 long getTotalCount()
           
 long getTotalPercentage()
           
 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
 

Field Detail

log

protected final org.apache.log4j.Category log
Constructor Detail

StatisticMapWrapper

public StatisticMapWrapper(Map statistics)
Method Detail

getStatistics

public Map getStatistics()

getPercentages

protected Map getPercentages()

setStatistics

public void setStatistics(Map statistics)

entrySet

public Set entrySet()

getTotalCount

public long getTotalCount()

getTotalPercentage

public long getTotalPercentage()

getTotal

public long getTotal(long total,
                     Map map)

getLargestPercentage

public long getLargestPercentage()

getPercentage

public long getPercentage(Object key)

getNullKeyValue

public long getNullKeyValue()


Copyright © 2002-2006 Atlassian. All Rights Reserved.