com.atlassian.jira.web.bean
Class StatisticMapWrapper<K,N extends Number>
java.lang.Object
java.util.AbstractMap<K,N>
com.atlassian.jira.web.bean.StatisticMapWrapper<K,N>
- All Implemented Interfaces:
- Map<K,N>
public class StatisticMapWrapper<K,N extends Number>
- extends AbstractMap<K,N>
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<K,N> statistics,
long totalCount,
long irrelevantCount)
getStatistics
public Map<K,N> getStatistics()
getPercentages
protected Map<K,Long> getPercentages()
getIrrelevantPercentage
public int getIrrelevantPercentage()
setStatistics
public void setStatistics(Map<K,N> statistics)
entrySet
public Set<Map.Entry<K,N>> entrySet()
- Specified by:
entrySet
in interface Map<K,N extends Number>
- Specified by:
entrySet
in class AbstractMap<K,N extends Number>
getTotalCount
public long getTotalCount()
- Return the total number of issues that were matched.
- Returns:
- total number of issues that were matched.
getIrrelevantCount
public int getIrrelevantCount()
getLargestPercentage
public long getLargestPercentage()
getPercentage
public int getPercentage(K key)
getNullKeyValue
public long getNullKeyValue()
Copyright © 2002-2012 Atlassian. All Rights Reserved.