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/interfaces inherited from interface java.util.Map |
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 |
StatisticMapWrapper
public StatisticMapWrapper(Map statistics,
long totalCount)
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.