GenericArrayType
interface GenericArrayType : Type
GenericArrayType
represents an array type whose component type is either a parameterized type or a type variable.
Summary
Public methods |
abstract Type |
Returns a Type object representing the component type of this array.
|
Inherited functions |
From class Type
String |
getTypeName()
Returns a string describing this type, including information about any type parameters.
|
|
Public methods
getGenericComponentType
abstract fun getGenericComponentType(): Type
Returns a Type
object representing the component type of this array. This method creates the component type of the array. See the declaration of for the semantics of the creation process for parameterized types and see TypeVariable
for the creation process for type variables.
Return |
Type |
a Type object representing the component type of this array |
Exceptions |
java.lang.TypeNotPresentException |
if the underlying array type's component type refers to a non-existent type declaration |
java.lang.reflect.MalformedParameterizedTypeException |
if the underlying array type's component type refers to a parameterized type that cannot be instantiated for any reason |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]