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

Method arraysCopyOf

output/java_guava/1.4.18/ObjectArrays.java:120–124  ·  view source on GitHub ↗

GWT safe version of Arrays.copyOf.

(T[] original, int newLength)

Source from the content-addressed store, hash-verified

118
119
120 static <T> T[] arraysCopyOf(T[] original, int newLength) {
121 T[] copy = newArray(original, newLength);
122 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength));
123 return copy;
124 }
125
126 /**
127 * Returns an array containing all of the elements in the specified

Callers 8

ensureCapacityMethod · 0.95
constructMethod · 0.95
leastOfMethod · 0.95
buildMethod · 0.95
concatMethod · 0.95
ensureCapacityMethod · 0.95
buildMethod · 0.95
asImmutableListMethod · 0.45

Calls 2

newArrayMethod · 0.95
minMethod · 0.45

Tested by

no test coverage detected