Module : java.arrays

Module overview

This module provides APIs to create new Java array instances, get elements from arrays, set elements, etc.

Functions

get

Returns a handle that refers to the element at the specified index in the given Java array.

This function completes abruptly with a panic, if the specified handle refers to a Java null, or if the handle does not refer to a Java array.

getLength

Returns the length of the given Java array.

newInstance

Returns a new Java array instance with the specified element type and dimensions.

This function completes abruptly with a panic, if the specified handle refers to a Java null, or if zero dimensions have been provided.

set

Replaces the indexed element at the specified index in the given Java array with the specified element.

This function completes abruptly with a panic, if the specified handle refers to a Java null, or if the handle does not refer to a Java array.