W3cubDocs

/Haxe Java

NativeArray<T>

package java

@:nativeGen Available on java

Represents a java fixed-size Array (T[])

Constructor

new (len:Int)

Allocates a new array with size len

Variables

read only length:Int

The length of the array

Static methods

static make<T> (elements:Rest<T>):NativeArray<T>

Creates a new array with the specified elements.

Usage:

var elements = NativeArray.make(1,2,3,4,5,6);

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/NativeArray.html