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

Method toArray

src/main/java/groovy/lang/Tuple.java:77–84  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

75 * {@inheritDoc}
76 */
77 @SuppressWarnings("unchecked")
78 @Override
79 public E[] toArray() {
80 int size = size();
81 E[] copy = (E[]) new Object[size];
82 System.arraycopy(contents, 0, copy, 0, size);
83 return copy;
84 }
85
86 /**
87 * {@inheritDoc}

Callers 15

PieceMethod · 0.45
testConstructionMethod · 0.45
testToArrayMethod · 0.45
runTestMethod · 0.45
testTargetVersionMethod · 0.45
testToArrayOnListMethod · 0.45
testMapEntryPropertyMethod · 0.45

Calls 2

sizeMethod · 0.95
arraycopyMethod · 0.80

Tested by 15

testConstructionMethod · 0.36
testToArrayMethod · 0.36
runTestMethod · 0.36
testTargetVersionMethod · 0.36
testToArrayOnListMethod · 0.36
testMapEntryPropertyMethod · 0.36
valuesMethod · 0.36