MCPcopy Create free account
hub / github.com/antlr/codebuff / newArrayListWithExpectedSize

Method newArrayListWithExpectedSize

output/java_guava/1.4.19/Lists.java:214–217  ·  view source on GitHub ↗

Creates an ArrayList instance to hold estimatedSize elements, plus an unspecified amount of padding; you almost certainly mean to call #newArrayListWithCapacity (see that method for further advice on usage). Note: This method will soon be deprecated. Even in

(int estimatedSize)

Source from the content-addressed store, hash-verified

212 */
213
214 @GwtCompatible(serializable = true)
215 public static <E> ArrayList<E> newArrayListWithExpectedSize(int estimatedSize) {
216 return new ArrayList<E>(computeArrayListCapacity(estimatedSize));
217 }
218
219 // LinkedList
220

Callers 2

snapshotMethod · 0.95
snapshotMethod · 0.95

Calls 1

Tested by

no test coverage detected