- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for newHashMap (0.12 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java
assertTrue( "A Map should equal any other Map containing the same entries.", getMap().equals(newHashMap(getSampleEntries()))); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_otherMapWithDifferentEntries() { Map<K, V> other = newHashMap(getSampleEntries(getNumEntries() - 1)); other.put(k3(), v3()); assertFalse(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4.9K bytes - Click Count (0) -
.idea/inspectionProfiles/Gradle.xml
</replaceConfiguration> <replaceConfiguration name="Treat some Guava Collection factory methods as Deprecated" uuid="82f9f9ab-9c3b-367f-99ad-40841dc13819" text="com.google.common.collect.Maps.newHashMap()" recursive="false" caseInsensitive="false" type="JAVA" pattern_context="default" reformatAccordingToStyle="true" shortenFQN="true" replacement="new java.util.HashMap<>()">Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Jun 26 21:49:47 GMT 2024 - 15.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
HashMap<Integer, Integer> map = Maps.newHashMap(); assertEquals(emptyMap(), map); } public void testHashMapWithInitialMap() { Map<String, Integer> original = new TreeMap<>(); original.put("a", 1); original.put("b", 2); original.put("c", 3); @SuppressWarnings("UseCollectionConstructor") // test of factory method HashMap<String, Integer> map = Maps.newHashMap(original); assertEquals(original, map);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 22:56:33 GMT 2025 - 65K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
HashMap<Integer, Integer> map = Maps.newHashMap(); assertEquals(emptyMap(), map); } public void testHashMapWithInitialMap() { Map<String, Integer> original = new TreeMap<>(); original.put("a", 1); original.put("b", 2); original.put("c", 3); @SuppressWarnings("UseCollectionConstructor") // test of factory method HashMap<String, Integer> map = Maps.newHashMap(original); assertEquals(original, map);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 22:56:33 GMT 2025 - 62.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Maps.java
*/ @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call public static <K extends @Nullable Object, V extends @Nullable Object> HashMap<K, V> newHashMap() { return new HashMap<>(); } /** * Creates a <i>mutable</i> {@code HashMap} instance with the same mappings as the specified map. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 157.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Maps.java
*/ @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call public static <K extends @Nullable Object, V extends @Nullable Object> HashMap<K, V> newHashMap() { return new HashMap<>(); } /** * Creates a <i>mutable</i> {@code HashMap} instance with the same mappings as the specified map. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 163.5K bytes - Click Count (0)