MCPcopy Create free account
hub / github.com/davidgiven/luje / toArray

Method toArray

lib/java/util/AbstractCollection.java:339–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337 public abstract int size();
338
339 public Object[] toArray() {
340 int size = size(), index = 0;
341 Iterator<?> it = iterator();
342 Object[] array = new Object[size];
343 while (index < size) {
344 array[index++] = it.next();
345 }
346 return array;
347 }
348
349 @SuppressWarnings("unchecked")
350 public <T> T[] toArray(T[] contents) {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.95
iteratorMethod · 0.95
nextMethod · 0.65

Tested by

no test coverage detected