Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for builderWithExpectedKeys (0.18 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertThrows(
            IllegalArgumentException.class, () -> ImmutableListMultimap.builderWithExpectedKeys(-1));
      }
    
      public void testBuilderWithExpectedKeysZero() {
        ImmutableListMultimap.Builder<String, String> builder =
            ImmutableListMultimap.builderWithExpectedKeys(0);
        builder.put("key", "value");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertThrows(
            IllegalArgumentException.class, () -> ImmutableSetMultimap.builderWithExpectedKeys(-1));
      }
    
      public void testBuilderWithExpectedKeysZero() {
        ImmutableSetMultimap.Builder<String, String> builder =
            ImmutableSetMultimap.builderWithExpectedKeys(0);
        builder.put("key", "value");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertThrows(
            IllegalArgumentException.class, () -> ImmutableListMultimap.builderWithExpectedKeys(-1));
      }
    
      public void testBuilderWithExpectedKeysZero() {
        ImmutableListMultimap.Builder<String, String> builder =
            ImmutableListMultimap.builderWithExpectedKeys(0);
        builder.put("key", "value");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultimap.java

       * {@code expectedKeys} is a good estimate.
       *
       * @throws IllegalArgumentException if {@code expectedKeys} is negative
       * @since 33.3.0
       */
      public static <K, V> Builder<K, V> builderWithExpectedKeys(int expectedKeys) {
        checkNonnegative(expectedKeys, "expectedKeys");
        return new Builder<>(expectedKeys);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top