com.atlassian.jira.web.bean
Class StatisticMapWrapper

java.lang.Object
  extended by java.util.AbstractMap
      extended by 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 Class Summary
 
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>
 
Constructor Summary
StatisticMapWrapper(java.util.Map statistics)
           
 
Method Summary
 java.util.Set entrySet()
           
 long getLargestPercentage()
           
 long getPercentage(java.lang.Object key)
           
protected  java.util.Map getPercentages()
           
 java.util.Map getStatistics()
           
 long getTotal(long total, java.util.Map map)
           
 long getTotalCount()
           
 long getTotalPercentage()
           
protected  boolean isLargestPercentage(java.lang.Long value)
           
 void setStatistics(java.util.Map statistics)
           
 
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
 

Constructor Detail

StatisticMapWrapper

public StatisticMapWrapper(java.util.Map statistics)
Method Detail

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.