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:
StatisticMap<K,N>, Map<K,N>

@Deprecated(forRemoval=true) public class StatisticMapWrapper<K,N extends Number> extends AbstractMap<K,N> implements StatisticMap<K,N>
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.7 replaced by StatisticMapWrapper in the jira-api module.
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
  • Constructor Details

    • StatisticMapWrapper

      public StatisticMapWrapper(Map<K,N> statistics, long totalCount, long irrelevantCount)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getStatistics

      public Map<K,N> getStatistics()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getStatistics in interface StatisticMap<K,N extends Number>
    • getPercentages

      protected Map<K,Long> getPercentages()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getIrrelevantPercentage

      public int getIrrelevantPercentage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getIrrelevantPercentage in interface StatisticMap<K,N extends Number>
    • setStatistics

      public void setStatistics(Map<K,N> statistics)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setStatistics in interface StatisticMap<K,N extends Number>
    • entrySet

      public Set<Map.Entry<K,N>> entrySet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      entrySet in interface Map<K,N extends Number>
      Specified by:
      entrySet in interface StatisticMap<K,N extends Number>
      Specified by:
      entrySet in class AbstractMap<K,N extends Number>
    • getTotalCount

      public long getTotalCount()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the total number of issues that were matched.
      Specified by:
      getTotalCount in interface StatisticMap<K,N extends Number>
      Returns:
      total number of issues that were matched.
    • getIrrelevantCount

      public int getIrrelevantCount()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getIrrelevantCount in interface StatisticMap<K,N extends Number>
    • getLargestPercentage

      public long getLargestPercentage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getLargestPercentage in interface StatisticMap<K,N extends Number>
    • getPercentage

      public int getPercentage(K key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getPercentage in interface StatisticMap<K,N extends Number>
    • getNullKeyValue

      public long getNullKeyValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNullKeyValue in interface StatisticMap<K,N extends Number>