MCPcopy Index your code
hub / github.com/antlr/codebuff / newLinkedHashMapWithExpectedSize

Method newLinkedHashMapWithExpectedSize

output/java_guava/1.4.17/Maps.java:280–282  ·  view source on GitHub ↗

Creates a LinkedHashMap instance, with a high enough "initial capacity" that it should hold expectedSize elements without growth. This behavior cannot be broadly guaranteed, but it is observed to be true for OpenJDK 1.7. It also can't be guaranteed that the method isn't inadve

(int expectedSize)

Source from the content-addressed store, hash-verified

278
279
280 public static <K, V> LinkedHashMap<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
281 return new LinkedHashMap<K, V>(capacity(expectedSize));
282 }
283
284 /**
285 * Creates a <i>mutable</i>, insertion-ordered {@code LinkedHashMap} instance

Callers 4

LinkedHashMultisetMethod · 0.95
createMapMethod · 0.45

Calls 1

capacityMethod · 0.95

Tested by

no test coverage detected