Package 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:
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.
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
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionStatisticMapWrapper
(Map<K, N> statistics, long totalCount, long irrelevantCount) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionentrySet()
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.long
Deprecated, for removal: This API element is subject to removal in a future version.long
Deprecated, for removal: This API element is subject to removal in a future version.int
getPercentage
(K key) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.long
Deprecated, for removal: This API element is subject to removal in a future version.Return the total number of issues that were matched.void
setStatistics
(Map<K, N> statistics) Deprecated, for removal: This API element is subject to removal in a future version.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
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
StatisticMapWrapper
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getStatistics
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getStatistics
in interfaceStatisticMap<K,
N extends Number>
-
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 interfaceStatisticMap<K,
N extends Number>
-
setStatistics
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setStatistics
in interfaceStatisticMap<K,
N extends Number>
-
entrySet
Deprecated, for removal: This API element is subject to removal in a future version. -
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 interfaceStatisticMap<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 interfaceStatisticMap<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 interfaceStatisticMap<K,
N extends Number>
-
getPercentage
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPercentage
in interfaceStatisticMap<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 interfaceStatisticMap<K,
N extends Number>
-
StatisticMapWrapper
in the jira-api module.