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

Method fillArray

output/java_guava/1.4.17/ObjectArrays.java:224–231  ·  view source on GitHub ↗
(Iterable<?> elements, Object[] array)

Source from the content-addressed store, hash-verified

222 }
223
224 @CanIgnoreReturnValue
225 private static Object[] fillArray(Iterable<?> elements, Object[] array) {
226 int i = 0;
227 for (Object element : elements) {
228 array[i++] = element;
229 }
230 return array;
231 }
232
233 /**
234 * Swaps {@code array[i]} with {@code array[j]}.

Callers 1

toArrayImplMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected