- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for JdkBackedImmutableMap (0.13 sec)
-
guava/src/com/google/common/collect/JdkBackedImmutableMap.java
newEntryArray[outI++] = entry; } entryArray = newEntryArray; } return new JdkBackedImmutableMap<>(delegateMap, ImmutableList.asImmutableList(entryArray, n)); } private final transient Map<K, V> delegateMap; private final transient ImmutableList<Entry<K, V>> entries; JdkBackedImmutableMap(Map<K, V> delegateMap, ImmutableList<Entry<K, V>> entries) { this.delegateMap = delegateMap;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.8K bytes - Viewed (0) -
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)