- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for newConcurrentMap (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
} @Empty static <K, V> ConcurrentMap<K, V> generateConcurrentMap() { return Maps.newConcurrentMap(); } @Generates static <K, V> ConcurrentMap<K, V> generateConcurrentMap(K key, V value) { ConcurrentMap<K, V> map = Maps.newConcurrentMap(); map.put(key, value); return map; } @Generates
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.7K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
} public void testConcurrentMap() { assertFreshInstance(new TypeToken<ConcurrentMap<String, ?>>() {}); assertCanGenerateOnly( new TypeToken<ConcurrentMap<EmptyEnum, String>>() {}, Maps.newConcurrentMap()); } public void testMultimap() { assertFreshInstance(new TypeToken<Multimap<String, ?>>() {}); } public void testHashMultimap() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 17.4K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
} public void testConcurrentMap() { assertFreshInstance(new TypeToken<ConcurrentMap<String, ?>>() {}); assertCanGenerateOnly( new TypeToken<ConcurrentMap<EmptyEnum, String>>() {}, Maps.newConcurrentMap()); } public void testMultimap() { assertFreshInstance(new TypeToken<Multimap<String, ?>>() {}); } public void testHashMultimap() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 18.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Maps.java
return new LinkedHashMap<>(capacity(expectedSize)); } /** * Creates a new empty {@link ConcurrentHashMap} instance. * * @since 3.0 */ public static <K, V> ConcurrentMap<K, V> newConcurrentMap() { return new ConcurrentHashMap<>(); } /** * Creates a <i>mutable</i>, empty {@code TreeMap} instance using the natural ordering of its * elements. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 157.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Maps.java
return new LinkedHashMap<>(capacity(expectedSize)); } /** * Creates a new empty {@link ConcurrentHashMap} instance. * * @since 3.0 */ public static <K, V> ConcurrentMap<K, V> newConcurrentMap() { return new ConcurrentHashMap<>(); } /** * Creates a <i>mutable</i>, empty {@code TreeMap} instance using the natural ordering of its * elements. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 163.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
IdentityHashMap<Integer, Integer> map = Maps.newIdentityHashMap(); assertEquals(emptyMap(), map); } public void testConcurrentMap() { ConcurrentMap<Integer, Integer> map = Maps.newConcurrentMap(); assertEquals(emptyMap(), map); } public void testTreeMap() { TreeMap<Integer, Integer> map = Maps.newTreeMap(); assertEquals(emptyMap(), map); assertThat(map.comparator()).isNull();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 63.2K bytes - Click Count (0)