MCPcopy
hub / github.com/libgdx/libgdx / toArray

Method toArray

gdx/src/com/badlogic/gdx/utils/Array.java:589–591  ·  view source on GitHub ↗

Returns the items as an array. Note the array is typed, so the #Array(ArraySupplier) constructor must have been used. Otherwise use #toArray(ArraySupplier) to specify the array type.

()

Source from the content-addressed store, hash-verified

587 /** Returns the items as an array. Note the array is typed, so the {@link #Array(ArraySupplier)} constructor must have been
588 * used. Otherwise use {@link #toArray(ArraySupplier)} to specify the array type. */
589 public T[] toArray () {
590 return Arrays.copyOf(items, size);
591 }
592
593 public T[] toArray (ArraySupplier<T[]> arraySupplier) {
594 T[] result = arraySupplier.get(size);

Callers 15

convertMethod · 0.95
parseMethod · 0.95
parseMeshesMethod · 0.95
parseAttributesMethod · 0.95
loadModelDataMethod · 0.95
getEntriesAtMethod · 0.45
getAllEntriesMethod · 0.45
getAPKExpansionFilesMethod · 0.45
getDisplayModesMethod · 0.45
getInterfacesMethod · 0.45
getFieldsMethod · 0.45

Calls 2

newInstanceMethod · 0.95
getMethod · 0.65

Tested by 4

getTestListMethod · 0.36
equalsMethod · 0.36
createMethod · 0.36
getCompatibleTestsMethod · 0.36