Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/java/lang/reflect/GenericArrayType#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/java/lang/reflect/GenericArrayType#inhmethods)

# GenericArrayType

` public interface GenericArrayType `   
` implements https://developer.android.com/reference/java/lang/reflect/Type `

|---|
| java.lang.reflect.GenericArrayType |

<br />

*** ** * ** ***

`GenericArrayType` represents an array type whose component type is either a parameterized type or a type variable.

## Summary

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/java/lang/reflect/Type` | ` https://developer.android.com/reference/java/lang/reflect/GenericArrayType#getGenericComponentType()() ` Returns a `Type` object representing the component type of this array. |

### Inherited methods

From interface ` https://developer.android.com/reference/java/lang/reflect/Type ` ` default https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/reflect/Type#getTypeName()() `

Returns a string describing this type, including information about any type parameters.

## Public methods

### getGenericComponentType

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Type getGenericComponentType ()
```

Returns a `Type` object representing the component type of this array. This method creates the component type of the array. See the declaration of `https://developer.android.com/reference/java/lang/reflect/ParameterizedType` for the semantics of the creation process for parameterized types and see `https://developer.android.com/reference/java/lang/reflect/TypeVariable` for the creation process for type variables.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/reflect/Type` | a `Type` object representing the component type of this array <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/TypeNotPresentException` | if the underlying array type's component type refers to a non-existent type declaration |
| `https://developer.android.com/reference/java/lang/reflect/MalformedParameterizedTypeException` | if the underlying array type's component type refers to a parameterized type that cannot be instantiated for any reason |