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

Method newArrayListWithCapacity

output/java_guava/1.4.16/Lists.java:191–195  ·  view source on GitHub ↗

Creates an ArrayList instance backed by an array with the specified initial size; simply delegates to ArrayList#ArrayList(int). Note for Java 7 and later: this method is now unnecessary and should be treated as deprecated. Instead, use new {@link ArrayList#ArrayLis

(int initialArraySize)

Source from the content-addressed store, hash-verified

189 */
190
191 @GwtCompatible(serializable = true)
192 public static <E> ArrayList<E> newArrayListWithCapacity(int initialArraySize) {
193 checkNonnegative(initialArraySize, "initialArraySize"); // for GWT.
194 return new ArrayList<E>(initialArraySize);
195 }
196
197 /**
198 * Creates an {@code ArrayList} instance to hold {@code estimatedSize}

Callers 8

ofMethod · 0.95
createNodesMethod · 0.95
initialValueMethod · 0.95
getSubscribersMethod · 0.95
invokeAnyImplMethod · 0.95
startupTimesMethod · 0.95
combineMethod · 0.45

Calls 1

checkNonnegativeMethod · 0.45

Tested by

no test coverage detected