MCPcopy Index your code
hub / github.com/apache/groovy / copy

Method copy

src/main/java/org/codehaus/groovy/util/FastArray.java:164–168  ·  view source on GitHub ↗

Returns a copy containing the populated elements of this array. @return a new FastArray with copied storage

()

Source from the content-addressed store, hash-verified

162 * @return a new {@code FastArray} with copied storage
163 */
164 public FastArray copy() {
165 final Object[] newData = new Object[size];
166 System.arraycopy(data, 0, newData, 0, size);
167 return new FastArray(newData);
168 }
169
170 /**
171 * Indicates whether this array contains any populated elements.

Callers 2

methodNameActionMethod · 0.45
getMethodsMethod · 0.45

Calls 1

arraycopyMethod · 0.80

Tested by

no test coverage detected