- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for MakeMap (0.04 seconds)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java
// GWT technically only supports concurrencyLevel == 1, but we silently // ignore other positive values. return this; } public <K, V> ConcurrentMap<K, V> makeMap() { return new ConcurrentHashMap<K, V>(initialCapacity); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapMakerTest.java
fail(); } catch (IllegalStateException expected) { } } public void testReturnsPlainConcurrentHashMapWhenPossible() { Map<?, ?> map = new MapMaker().initialCapacity(5).makeMap(); assertTrue(map instanceof ConcurrentHashMap); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java
public void testAddAndRemove_mapMakerMap() throws Exception { MapMaker mapMaker = new MapMaker(); // force MapMaker to use its own MapMakerInternalMap mapMaker.useCustomMap = true; testAddAndRemove(mapMaker.makeMap()); } private void testAddAndRemove(ConcurrentMap<String, AtomicInteger> map) throws ExecutionException, InterruptedException { ConcurrentHashMultiset<String> multiset = ConcurrentHashMultiset.create(map);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Dec 08 22:42:14 GMT 2025 - 5.7K bytes - Click Count (0)