- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for JdkBackedImmutableMap (0.12 sec)
-
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
} ImmutableMap<ClassWithTerribleHashCode, Integer> map = builder.buildKeepingLast(); assertThat(map).containsExactlyEntriesIn(expected).inOrder(); assertThat(map).isInstanceOf(JdkBackedImmutableMap.class); } @GwtIncompatible // Pattern, Matcher public void testBuilder_keepingLast_thenOrThrow() { ImmutableMap.Builder<String, Integer> builder = new Builder<String, Integer>()
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
} catch (BucketOverflowException e) { // probable hash flooding attack, fall back to j.u.HM based implementation and use its // implementation of hash flooding protection return JdkBackedImmutableMap.create(n, entryArray, throwIfDuplicateKeys); } } private static <K, V> ImmutableMap<K, V> fromEntryArrayCheckingBucketOverflow(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 16.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
Entry<K, V> onlyEntry = requireNonNull(entries[0]); return of(onlyEntry.getKey(), onlyEntry.getValue()); default: entriesUsed = true; return JdkBackedImmutableMap.create(size, entries, /* throwIfDuplicateKeys= */ true); } } /** * Scans the first {@code size} elements of {@code entries} looking for duplicate keys. If
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 44.6K bytes - Viewed (0)