gdxArrayOf

inline fun <Type : Any> gdxArrayOf(ordered: Boolean = true, initialCapacity: Int = defaultArraySize): GdxArray<Type>

Return

a new instance of Array.

Parameters

ordered

if false, methods that remove elements may change the order of other elements in the array, which avoids a memory copy.

initialCapacity

initial size of the backing array.


inline fun <Type : Any> gdxArrayOf(vararg elements: Type): GdxArray<Type>

Return

a new instance of Array.

Parameters

elements

will be initially stored in the array.