Home
last modified time | relevance | path

Searched refs:countMap (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava/src/com/google/common/collect/
DConcurrentHashMultiset.java70 private final transient ConcurrentMap<E, AtomicInteger> countMap; field in ConcurrentHashMultiset
140 @VisibleForTesting ConcurrentHashMultiset(ConcurrentMap<E, AtomicInteger> countMap) { in ConcurrentHashMultiset() argument
141 checkArgument(countMap.isEmpty()); in ConcurrentHashMultiset()
142 this.countMap = countMap; in ConcurrentHashMultiset()
154 AtomicInteger existingCounter = Maps.safeGet(countMap, element); in count()
166 for (AtomicInteger value : countMap.values()) { in size()
219 AtomicInteger existingCounter = Maps.safeGet(countMap, element); in add()
221 existingCounter = countMap.putIfAbsent(element, new AtomicInteger(occurrences)); in add()
246 if ((countMap.putIfAbsent(element, newCounter) == null) in add()
247 || countMap.replace(element, existingCounter, newCounter)) { in add()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/collect/
DConcurrentHashMultisetBenchmark.java160 private final transient ConcurrentMap<E, Integer> countMap;
170 @VisibleForTesting OldConcurrentHashMultiset(ConcurrentMap<E, Integer> countMap) {
171 checkArgument(countMap.isEmpty());
172 this.countMap = countMap;
185 return unbox(countMap.get(element));
202 for (Integer value : countMap.values()) {
257 if (countMap.putIfAbsent(element, occurrences) == null) {
265 if (countMap.replace(element, current, next)) {
295 if (countMap.remove(element, current)) {
303 if (countMap.replace(casted, current, current - occurrences)) {
[all …]
/external/emma/core/java12/com/vladium/emma/report/
DAbstractReportGenerator.java143 … final ObjectIntMap /* packageVMName:String -> count:int */ countMap = new ObjectIntMap (); in initialize() local
154 final int count = countMap.get (packageVMName, _count) in initialize()
161 countMap.put (packageVMName, count + 1); in initialize()