All Manuals > LispWorks User Guide and Reference Manual > 41 The LW-JI Package

NextPrevUpTopContentsIndex

make-java-array

Function
Summary

Create a Java array object.

Package

lw-ji

Signature

make-java-array type first-dim &rest dims => array

Arguments

type

A string, one of the keywords :byte, :short, :int, :long, :float, :double, :char, :boolean, :object and :string, an FLI type specifier, or t.

first-dim

A non-negative integer.

dims

Non-negative integers.

Values

array

A new array.

Description

The function make-java-array creates a Java array object array.

type specifies the type of elements in array. To make an array of any Java class, type needs to be a string with the full name of the class. To make an array of primitive type, type should be the corresponding keyword (:byte, :short, :int, :long, :float, :double, :char or :boolean). type can also be :object or t meaning java.lang.Object, and :string meaning java.lang.String, and the FLI types matching the primitive types.

The dimension(s) of the array are specified by first-dim and the dims list, which must all be non-negative integer(s).

make-java-array returns the new array.


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex