@Beta
  public static <K, V> Builder<K, V> builderWithExpectedSize(int expectedSize) {
    checkNonnegative(expectedSize, "expectedSize");
    return new Builder<>(expectedSize);
  }
@Beta
  public static <K, V> Builder<K, V> builderWithExpectedSize(int expectedSize) {
    checkNonnegative(expectedSize, "expectedSize");
    return new Builder<>(expectedSize);
  }
@ Beta public static < K , V > Builder < K , V > builderWithExpectedSize ( int expectedSize ) { checkNonnegative ( expectedSize , "expectedSize" ) ; return new Builder <> ( expectedSize ) ; }
Returns a new builder, expecting the specified number of entries to be added.

<p>If {@code expectedSize} is exactly the number of entries added to the builder before {@link
Builder#build} is called, the builder is likely to perform better than an unsized {@link
#builder()} would have.

<p>It is not specified if any performance benefits apply if {@code expectedSize} is close to,
but not exactly, the number of entries added to the builder.

@since 23.1
Returns a new builder expecting the specified number of entries to be added .