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)
| 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} |
no test coverage detected