MCPcopy
hub / github.com/libgdx/libgdx / resize

Method resize

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

Creates a new backing array with the specified size containing the current items.

(int newSize)

Source from the content-addressed store, hash-verified

484
485 /** Creates a new backing array with the specified size containing the current items. */
486 protected T[] resize (int newSize) {
487 items = Arrays.copyOf(items, newSize);
488 return items;
489 }
490
491 /** Sorts this array. The array elements must implement {@link Comparable}. This method is not thread safe (uses
492 * {@link Sort#instance()}). */

Callers 7

addMethod · 0.95
addAllMethod · 0.95
insertMethod · 0.95
insertRangeMethod · 0.95
shrinkMethod · 0.95
ensureCapacityMethod · 0.95
setSizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected