- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for JdkBackedImmutableMap (0.07 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/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)