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

Method toObjectArray

vm/JavaAPI/src/java/util/ArrayList.java:88–93  ·  view source on GitHub ↗
(Object[] objects, Collection collection)

Source from the content-addressed store, hash-verified

86 }
87
88 static void toObjectArray(Object[] objects, Collection collection) {
89 Iterator i = collection.iterator();
90 for(int iter = 0 ; iter < objects.length ; iter++) {
91 objects[iter] = i.next();
92 }
93 }
94
95 static Object[] toObjectArray(Collection collection) {
96 Object[] objects = new Object[collection.size()];

Callers 3

toArrayMethod · 0.95
ArrayListMethod · 0.95
addAllMethod · 0.95

Calls 3

nextMethod · 0.95
iteratorMethod · 0.65
sizeMethod · 0.65

Tested by

no test coverage detected