Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for JdkBackedImmutableMap (0.07 sec)

  1. 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)
  2. 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)
Back to top