T, the array type is written T[].
A component type may itself be an array type. For a component type T[],
the array type is written T[][]. Such array type is also called
multi-dimensional array type.
Array types also have an element type, which is obtained by repeatedly
asking for the component type until a non-array type is returned. For example,
the String[][] array type has an element type of String.
| Modifier and Type | Method and Description |
|---|---|
| public default ArrayType | asArray()
Overrides default jakarta. |
| public Type | Returns: the component type, nevernullReturns the component type of this array type, as defined by The Java™ Language Specification. |
| public default Type. |
| asArray | back to summary |
|---|---|
| public default ArrayType asArray() Overrides default jakarta. Doc from jakarta. Returns this type as an array type. | |
| componentType | back to summary |
|---|---|
| public Type componentType() Returns the component type of this array type, as defined by The Java™ Language Specification. That is, in case of a single-dimensional array, the element type of the array, and in case of a multi-dimensional array, an array type with one less dimension.
For example, the component type of Each dimension of the array type may be annotated independently.
| |
| kind | back to summary |
|---|---|
| public default Type. Implements jakarta. Doc from jakarta. Returns the kind of this type. | |