Create a Java array object.
lw-ji
make-java-array type first-dim &rest dims => array
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. |
array⇩ |
A new array. |
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 dims, which must all be non-negative integer(s).
make-java-array
returns the new array.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:46