com.atlassian.jira.web.bean
Class StatisticMapWrapper
java.lang.Object
java.util.AbstractMap
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 classes inherited from class java.util.AbstractMap |
|
Field Summary |
protected org.apache.log4j.Category |
log
|
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
log
protected final org.apache.log4j.Category log
StatisticMapWrapper
public StatisticMapWrapper(Map statistics)
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.