Home
last modified time | relevance | path

Searched refs:ConcurrentHashMap (Results 1 – 25 of 41) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMapTest.java20 import java.util.concurrent.ConcurrentHashMap;
39 private static ConcurrentHashMap<Integer, String> map5() { in map5()
40 ConcurrentHashMap map = new ConcurrentHashMap<Integer, String>(5); in map5()
124 ConcurrentHashMap<BI, Boolean> m = in testComparableFamily()
125 new ConcurrentHashMap<BI, Boolean>(); in testComparableFamily()
141 ConcurrentHashMap<Object, Boolean> m = in testGenericComparable()
142 new ConcurrentHashMap<Object, Boolean>(); in testGenericComparable()
166 ConcurrentHashMap<Object, Boolean> m = in testGenericComparable2()
167 new ConcurrentHashMap<Object, Boolean>(); in testGenericComparable2()
184 ConcurrentHashMap<Object, Object> map = in testMixedComparable()
[all …]
DConcurrentHashMap8Test.java22 import java.util.concurrent.ConcurrentHashMap;
43 private static ConcurrentHashMap map5() { in map5()
44 ConcurrentHashMap map = new ConcurrentHashMap(5); in map5()
60 ConcurrentHashMap map = map5(); in testGetOrDefault()
69 ConcurrentHashMap map = map5(); in testComputeIfAbsent()
78 ConcurrentHashMap map = map5(); in testComputeIfAbsent2()
86 ConcurrentHashMap map = map5(); in testComputeIfAbsent3()
95 ConcurrentHashMap map = map5(); in testComputeIfPresent()
104 ConcurrentHashMap map = map5(); in testComputeIfPresent2()
112 ConcurrentHashMap map = map5(); in testCompute()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DConcurrentHashMapTest.java19 import java.util.concurrent.ConcurrentHashMap;
24 MapDefaultMethodTester.test_getOrDefault(new ConcurrentHashMap<>(), in test_getOrDefault()
29 MapDefaultMethodTester.test_forEach(new ConcurrentHashMap<>()); in test_forEach()
34 .test_putIfAbsent(new ConcurrentHashMap<>(), false /*doesNotAcceptNullKey*/, in test_putIfAbsent()
40 .test_remove(new ConcurrentHashMap<>(), false /*doesNotAcceptNullKey*/, in test_remove()
46 .test_replace$K$V$V(new ConcurrentHashMap<>(), false /*doesNotAcceptNullKey*/, in test_replace$K$V$V()
51 MapDefaultMethodTester.test_replace$K$V(new ConcurrentHashMap<>(), in test_replace$K$V()
56 MapDefaultMethodTester.test_computeIfAbsent(new ConcurrentHashMap<>(), in test_computeIfAbsent()
61 MapDefaultMethodTester.test_computeIfPresent(new ConcurrentHashMap<>(), in test_computeIfPresent()
67 .test_compute(new ConcurrentHashMap<>(), false /*doesNotAcceptNullKey*/); in test_compute()
[all …]
DAbstractCollectionTest.java22 import java.util.concurrent.ConcurrentHashMap;
28 final ConcurrentHashMap<Integer, Integer> m = new ConcurrentHashMap<Integer, Integer>(); in test_toArray()
DEvilMapTest.java28 import java.util.concurrent.ConcurrentHashMap;
103 ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(evil); in test_48055_ConcurrentHashMap()
105 ConcurrentHashMap<String, String> map2 = new ConcurrentHashMap<String, String>(); in test_48055_ConcurrentHashMap()
/libcore/benchmarks/src/benchmarks/
DHashedCollectionsBenchmark.java22 import java.util.concurrent.ConcurrentHashMap;
61 ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); in timeConcurrentHashMapGet()
/libcore/ojluni/src/main/java/java/util/stream/
DDistinctOps.java32 import java.util.concurrent.ConcurrentHashMap;
81 ConcurrentHashMap<T, Boolean> map = new ConcurrentHashMap<>(); in makeRef()
DBaseStream.java31 import java.util.concurrent.ConcurrentHashMap;
DForEachOps.java29 import java.util.concurrent.ConcurrentHashMap;
368 … private final ConcurrentHashMap<ForEachOrderedTask<S, T>, ForEachOrderedTask<S, T>> completionMap;
381 … this.completionMap = new ConcurrentHashMap<>(Math.max(16, AbstractTask.LEAF_TARGET << 1)); in ForEachOrderedTask()
DCollectors.java47 import java.util.concurrent.ConcurrentHashMap;
967 return groupingByConcurrent(classifier, ConcurrentHashMap::new, toList());
1008 return groupingByConcurrent(classifier, ConcurrentHashMap::new, downstream);
1375 return toConcurrentMap(keyMapper, valueMapper, throwingMerger(), ConcurrentHashMap::new);
1429 return toConcurrentMap(keyMapper, valueMapper, mergeFunction, ConcurrentHashMap::new);
DDoubleStream.java36 import java.util.concurrent.ConcurrentHashMap;
DLongStream.java38 import java.util.concurrent.ConcurrentHashMap;
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarSystem.java37 import java.util.concurrent.ConcurrentHashMap;
98 new ConcurrentHashMap<>();
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleObjectCache.java36 import java.util.concurrent.ConcurrentHashMap;
48 map = new ConcurrentHashMap<>(initialCapacity, loadFactor, concurrencyLevel); in LocaleObjectCache()
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileLockTable.java30 import java.util.concurrent.ConcurrentHashMap;
106 private static ConcurrentHashMap<FileKey, List<FileLockReference>> lockMap =
107 new ConcurrentHashMap<FileKey, List<FileLockReference>>();
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectionAndMapModifyStreamTest.java28 import java.util.concurrent.ConcurrentHashMap;
131 maps.put(ConcurrentHashMap.class.getName(), () -> new ConcurrentHashMap<>(content)); in createMaps()
DTabulatorsTest.java41 import java.util.concurrent.ConcurrentHashMap;
430 … new ToMapAssertion<>(keyFn, valueFn, sum, ConcurrentHashMap.class));
440 new ToMapAssertion<>(keyFn, valueFn, sum, ConcurrentHashMap.class));
455 new GroupedMapAssertion<>(classifier, ConcurrentHashMap.class,
484 new GroupedMapAssertion<>(classifier, ConcurrentHashMap.class,
491 … new GroupedMapAssertion<>(classifier2, ConcurrentHashMap.class,
496 new GroupedMapAssertion<>(classifier, ConcurrentHashMap.class,
497 … new GroupedMapAssertion<>(classifier2, ConcurrentHashMap.class,
538 new GroupedMapAssertion<>(classifier, ConcurrentHashMap.class,
560 new GroupedMapAssertion<>(classifier, ConcurrentHashMap.class,
/libcore/ojluni/src/main/java/sun/util/
DLocaleServiceProviderPool.java43 import java.util.concurrent.ConcurrentHashMap;
63 new ConcurrentHashMap<>();
76 new ConcurrentHashMap<Locale, LocaleServiceProvider>();
/libcore/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java50 import java.util.concurrent.ConcurrentHashMap;
1045 …private static final ConcurrentHashMap<Locale, Object[]> cachedLocaleData = new ConcurrentHashMap<…
DDateFormatSymbols.java51 import java.util.concurrent.ConcurrentHashMap;
767 = new ConcurrentHashMap<Locale, SoftReference<DateFormatSymbols>>(3);
/libcore/luni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java235 public class ConcurrentHashMap<K,V> extends AbstractMap<K,V> class
802 public ConcurrentHashMap() { in ConcurrentHashMap() method in ConcurrentHashMap
815 public ConcurrentHashMap(int initialCapacity) { in ConcurrentHashMap() method in ConcurrentHashMap
829 public ConcurrentHashMap(Map<? extends K, ? extends V> m) { in ConcurrentHashMap() method in ConcurrentHashMap
849 public ConcurrentHashMap(int initialCapacity, float loadFactor) { in ConcurrentHashMap() method in ConcurrentHashMap
871 public ConcurrentHashMap(int initialCapacity, in ConcurrentHashMap() method in ConcurrentHashMap
2160 (new ConcurrentHashMap<K,Boolean>(), Boolean.TRUE); in newKeySet()
2177 (new ConcurrentHashMap<K,Boolean>(initialCapacity), Boolean.TRUE); in newKeySet()
3414 final ConcurrentHashMap<K,V> map;
3417 ConcurrentHashMap<K,V> map) { in BaseIterator()
[all …]
/libcore/support/src/test/java/tests/http/
DMockWebServer.java42 import java.util.concurrent.ConcurrentHashMap;
71 = Collections.newSetFromMap(new ConcurrentHashMap<Socket, Boolean>());
/libcore/support/src/test/java/tests/support/
DSupport_TestWebServer.java24 import java.util.concurrent.ConcurrentHashMap;
44 = new ConcurrentHashMap<String, Request>();
/libcore/ojluni/src/main/java/java/lang/
DThread.java37 import java.util.concurrent.ConcurrentHashMap;
1632 new ConcurrentHashMap<>();
/libcore/ojluni/src/main/java/java/security/
DSecurity.java31 import java.util.concurrent.ConcurrentHashMap;
555 private static final Map<String, Class> spiMap = new ConcurrentHashMap<>();

12