- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for newIdentityHashMap (0.12 seconds)
-
src/main/java/org/codelibs/core/collection/CollectionsUtil.java
* @param <V> the value type of {@link IdentityHashMap} * @return a new instance of {@link IdentityHashMap} * @see IdentityHashMap#IdentityHashMap() */ public static <K, V> IdentityHashMap<K, V> newIdentityHashMap() { return new IdentityHashMap<>(); } /** * Creates and returns a new instance of {@link IdentityHashMap}. * * @param <K> the key type of {@link IdentityHashMap}Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 49.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
} // Intentionally using IdentityHashMap to test creation. @SuppressWarnings("IdentityHashMapBoxing") public void testIdentityHashMap() { IdentityHashMap<Integer, Integer> map = Maps.newIdentityHashMap(); assertEquals(emptyMap(), map); } public void testConcurrentMap() { ConcurrentMap<Integer, Integer> map = Maps.newConcurrentMap(); assertEquals(emptyMap(), map); }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) -
android/guava/src/com/google/common/collect/Sets.java
* way {@code IdentityHashMap} handles key lookups. * * @since 8.0 */ public static <E extends @Nullable Object> Set<E> newIdentityHashSet() { return Collections.newSetFromMap(Maps.newIdentityHashMap()); } /** * Creates an empty {@code CopyOnWriteArraySet} instance. * * <p><b>Note:</b> if you need an immutable empty {@link Set}, use {@link Collections#emptySet} * instead. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 81.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Sets.java
* way {@code IdentityHashMap} handles key lookups. * * @since 8.0 */ public static <E extends @Nullable Object> Set<E> newIdentityHashSet() { return Collections.newSetFromMap(Maps.newIdentityHashMap()); } /** * Creates an empty {@code CopyOnWriteArraySet} instance. * * <p><b>Note:</b> if you need an immutable empty {@link Set}, use {@link Collections#emptySet} * instead. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 83K bytes - Click Count (0)