public class StatisticMapWrapper<K,N extends Number> extends AbstractMap<K,N> implements StatisticMap<K,N>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
StatisticMapWrapper(Map<K,N> statistics,
long totalCount,
long irrelevantCount) |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<K,N>> |
entrySet() |
int |
getIrrelevantCount() |
int |
getIrrelevantPercentage() |
long |
getLargestPercentage() |
long |
getNullKeyValue() |
int |
getPercentage(K key) |
protected Map<K,Long> |
getPercentages() |
Map<K,N> |
getStatistics() |
long |
getTotalCount()
Return the total number of issues that were matched.
|
void |
setStatistics(Map<K,N> statistics) |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Map<K,N> getStatistics()
getStatistics
in interface StatisticMap<K,N extends Number>
public int getIrrelevantPercentage()
getIrrelevantPercentage
in interface StatisticMap<K,N extends Number>
public void setStatistics(Map<K,N> statistics)
setStatistics
in interface StatisticMap<K,N extends Number>
public long getTotalCount()
getTotalCount
in interface StatisticMap<K,N extends Number>
public int getIrrelevantCount()
getIrrelevantCount
in interface StatisticMap<K,N extends Number>
public long getLargestPercentage()
getLargestPercentage
in interface StatisticMap<K,N extends Number>
public int getPercentage(K key)
getPercentage
in interface StatisticMap<K,N extends Number>
public long getNullKeyValue()
getNullKeyValue
in interface StatisticMap<K,N extends Number>
Copyright © 2002-2016 Atlassian. All Rights Reserved.