MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / toArray

Method toArray

vm/JavaAPI/src/java/util/ArrayList.java:599–604  ·  view source on GitHub ↗

Returns a new array containing all elements contained in this ArrayList. @return an array of the elements from this ArrayList

()

Source from the content-addressed store, hash-verified

597 * @return an array of the elements from this {@code ArrayList}
598 */
599 @Override
600 public Object[] toArray() {
601 Object[] result = new Object[size];
602 System.arraycopy(array, firstIndex, result, 0, size);
603 return result;
604 }
605
606 /**
607 * Returns an array containing all elements contained in this

Callers 15

insertMethod · 0.95
updateMethod · 0.95
selectImplMethod · 0.95
buildMethod · 0.95
getReceiptsMethod · 0.95
listMethod · 0.95
listFilesMethod · 0.95
groupMethod · 0.95
setSameWidthMethod · 0.95
setSameHeightMethod · 0.95

Calls 4

arraycopyMethod · 0.95
newInstanceMethod · 0.65
getComponentTypeMethod · 0.65
getClassMethod · 0.45

Tested by 6

getToolbarCommandsMethod · 0.76
prepareTestsMethod · 0.76
findTestCasesMethod · 0.76
executeQueryMethod · 0.76
getAllContactsMethod · 0.76