com.atlassian.jira.web.bean
Class StatisticMapWrapper
java.lang.Object
java.util.AbstractMap
com.atlassian.jira.web.bean.StatisticMapWrapper
- All Implemented Interfaces:
- java.util.Map
public class StatisticMapWrapper
- extends java.util.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/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
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 |
StatisticMapWrapper
public StatisticMapWrapper(java.util.Map statistics)
getStatistics
public java.util.Map getStatistics()
getPercentages
protected java.util.Map getPercentages()
setStatistics
public void setStatistics(java.util.Map statistics)
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet
in interface java.util.Map
- Specified by:
entrySet
in class java.util.AbstractMap
getTotalCount
public long getTotalCount()
getTotalPercentage
public long getTotalPercentage()
getTotal
public long getTotal(long total,
java.util.Map map)
getLargestPercentage
public long getLargestPercentage()
getPercentage
public long getPercentage(java.lang.Object key)
isLargestPercentage
protected boolean isLargestPercentage(java.lang.Long value)
Copyright © 2002-2006 Atlassian. All Rights Reserved.