public class

StatisticMapWrapper

extends AbstractMap<K, V>
implements StatisticMap<K, N extends Number>
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ com.atlassian.jira.web.bean.StatisticMapWrapper<K, N extends java.lang.Number>

Class Overview

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

Summary

Public Constructors
StatisticMapWrapper(Map<K, N> statistics, long totalCount, long irrelevantCount)
Public Methods
Set<Entry<K, N>> entrySet()
int getIrrelevantCount()
int getIrrelevantPercentage()
long getLargestPercentage()
long getNullKeyValue()
int getPercentage(K key)
Map<K, N> getStatistics()
long getTotalCount()
Return the total number of issues that were matched.
void setStatistics(Map<K, N> statistics)
Protected Methods
Map<K, Long> getPercentages()
[Expand]
Inherited Methods
From class java.util.AbstractMap
From class java.lang.Object
From interface com.atlassian.jira.web.bean.StatisticMap
From interface java.util.Map

Public Constructors

public StatisticMapWrapper (Map<K, N> statistics, long totalCount, long irrelevantCount)

Public Methods

public Set<Entry<K, N>> entrySet ()

public int getIrrelevantCount ()

public int getIrrelevantPercentage ()

public long getLargestPercentage ()

public long getNullKeyValue ()

public int getPercentage (K key)

public Map<K, N> getStatistics ()

public long getTotalCount ()

Return the total number of issues that were matched.

Returns
  • total number of issues that were matched.

public void setStatistics (Map<K, N> statistics)

Protected Methods

protected Map<K, Long> getPercentages ()