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

Method toObjectArray

Ports/CLDC11/src/java/util/ArrayList.java:77–82  ·  view source on GitHub ↗
(Object[] objects, Collection collection)

Source from the content-addressed store, hash-verified

75 }
76
77 static void toObjectArray(Object[] objects, Collection collection) {
78 Iterator i = collection.iterator();
79 for(int iter = 0 ; iter < objects.length ; iter++) {
80 objects[iter] = i.next();
81 }
82 }
83
84 static Object[] toObjectArray(Collection collection) {
85 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