- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for makeMap (0.1 sec)
-
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
public void testSerializationWithMapMaker1() { ConcurrentMap<String, AtomicInteger> map = new MapMaker().makeMap(); multiset = ConcurrentHashMultiset.create(map); reserializeAndAssert(multiset); } public void testSerializationWithMapMaker2() { ConcurrentMap<String, AtomicInteger> map = new MapMaker().makeMap(); multiset = ConcurrentHashMultiset.create(map);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
makeMap(MapMaker maker) { return MapMakerInternalMap.create(maker); } private static MapMaker createMapMaker() { MapMaker maker = new MapMaker(); maker.useCustomMap = true; return maker; } // constructor tests public void testDefaults() { MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 35.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
makeMap(MapMaker maker) { return MapMakerInternalMap.create(maker); } private static MapMaker createMapMaker() { MapMaker maker = new MapMaker(); maker.useCustomMap = true; return maker; } // constructor tests public void testDefaults() { MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 35.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
public void testSerializationWithMapMaker1() { ConcurrentMap<String, AtomicInteger> map = new MapMaker().makeMap(); multiset = ConcurrentHashMultiset.create(map); reserializeAndAssert(multiset); } public void testSerializationWithMapMaker2() { ConcurrentMap<String, AtomicInteger> map = new MapMaker().makeMap(); multiset = ConcurrentHashMultiset.create(map);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
checkState(newMap instanceof MapMakerInternalMap); newMap.putAll(map); return newMap; } }, MapMakerStrongKeysWeakValues { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/cache/MapMakerComparisonBenchmark.java
private static final String TEST_KEY = "test key"; private static final String TEST_VALUE = "test value"; // Non-loading versions: private final Map<Object, Object> map = new MapMaker().makeMap(); // Returns ConcurrentHashMap private final Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build(); private final Cache<Object, Object> cacheNoStats = CacheBuilder.newBuilder().build();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 05 17:21:46 UTC 2022 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
checkState(newMap instanceof MapMakerInternalMap); newMap.putAll(map); return newMap; } }, MapMakerStrongKeysWeakValues { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0) -
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); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 23 18:43:40 UTC 2024 - 1.7K bytes - Viewed (0) -
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); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 2.7K bytes - Viewed (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); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 2.7K bytes - Viewed (0)