Home
last modified time | relevance | path

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

/external/guava/android/guava/src/com/google/common/collect/
DConcurrentHashMultiset.java72 private final transient ConcurrentMap<E, AtomicInteger> countMap; field in ConcurrentHashMultiset
121 public static <E> ConcurrentHashMultiset<E> create(ConcurrentMap<E, AtomicInteger> countMap) { in create() argument
122 return new ConcurrentHashMultiset<E>(countMap); in create()
126 ConcurrentHashMultiset(ConcurrentMap<E, AtomicInteger> countMap) { in ConcurrentHashMultiset() argument
127 checkArgument(countMap.isEmpty(), "the backing map (%s) must be empty", countMap); in ConcurrentHashMultiset() local
128 this.countMap = countMap; in ConcurrentHashMultiset()
141 AtomicInteger existingCounter = Maps.safeGet(countMap, element); in count()
154 for (AtomicInteger value : countMap.values()) { in size()
211 AtomicInteger existingCounter = Maps.safeGet(countMap, element); in add()
213 existingCounter = countMap.putIfAbsent(element, new AtomicInteger(occurrences)); in add()
[all …]
/external/guava/guava/src/com/google/common/collect/
DConcurrentHashMultiset.java72 private final transient ConcurrentMap<E, AtomicInteger> countMap; field in ConcurrentHashMultiset
121 public static <E> ConcurrentHashMultiset<E> create(ConcurrentMap<E, AtomicInteger> countMap) { in create() argument
122 return new ConcurrentHashMultiset<E>(countMap); in create()
126 ConcurrentHashMultiset(ConcurrentMap<E, AtomicInteger> countMap) { in ConcurrentHashMultiset() argument
127 checkArgument(countMap.isEmpty(), "the backing map (%s) must be empty", countMap); in ConcurrentHashMultiset() local
128 this.countMap = countMap; in ConcurrentHashMultiset()
141 AtomicInteger existingCounter = Maps.safeGet(countMap, element); in count()
154 for (AtomicInteger value : countMap.values()) { in size()
211 AtomicInteger existingCounter = Maps.safeGet(countMap, element); in add()
213 existingCounter = countMap.putIfAbsent(element, new AtomicInteger(occurrences)); in add()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/collect/
DConcurrentHashMultisetBenchmark.java170 private final transient ConcurrentMap<E, Integer> countMap;
181 OldConcurrentHashMultiset(ConcurrentMap<E, Integer> countMap) {
182 checkArgument(countMap.isEmpty());
183 this.countMap = countMap;
197 return unbox(countMap.get(element));
212 for (Integer value : countMap.values()) {
269 if (countMap.putIfAbsent(element, occurrences) == null) {
279 if (countMap.replace(element, current, next)) {
310 if (countMap.remove(element, current)) {
318 if (countMap.replace(casted, current, current - occurrences)) {
[all …]
/external/guava/android/guava-tests/benchmark/com/google/common/collect/
DConcurrentHashMultisetBenchmark.java170 private final transient ConcurrentMap<E, Integer> countMap;
181 OldConcurrentHashMultiset(ConcurrentMap<E, Integer> countMap) {
182 checkArgument(countMap.isEmpty());
183 this.countMap = countMap;
197 return unbox(countMap.get(element));
212 for (Integer value : countMap.values()) {
269 if (countMap.putIfAbsent(element, occurrences) == null) {
279 if (countMap.replace(element, current, next)) {
310 if (countMap.remove(element, current)) {
318 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()
/external/guava/
Dcycle_whitelist.txt31 FIELD com.google.common.collect.ConcurrentHashMultiset.countMap