## Uses of Interface
java.lang.reflect.Type

- Packages that use Type
  Package | Description
  --- | ---
  java.lang |
  java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects.

- - ### Uses of Type in java.lang

    Classes in java.lang that implement Type
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Class<T>` Instances of the class `Class` represent classes and interfaces in a running Java application.

  - ### Uses of Type in java.lang.reflect

    Subinterfaces of Type in java.lang.reflect
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `TypeVariable<D extends GenericDeclaration>` TypeVariable is the common superinterface for type variables of kinds.

    Methods in java.lang.reflect that return Type
    Modifier and Type | Method and Description
    --- | ---
    `Type[]` | TypeVariable.`getBounds()` Returns an array of `Type` objects representing the upper bound(s) of this type variable.
    `Type[]` | Method.`getGenericExceptionTypes()` Returns an array of `Type` objects that represent the exceptions declared to be thrown by this `Method` object.
    `Type[]` | Constructor.`getGenericExceptionTypes()` Returns an array of `Type` objects that represent the exceptions declared to be thrown by this `Constructor` object.
    `Type[]` | Method.`getGenericParameterTypes()` Returns an array of `Type` objects that represent the formal parameter types, in declaration order, of the method represented by this `Method` object.
    `Type[]` | Constructor.`getGenericParameterTypes()` Returns an array of `Type` objects that represent the formal parameter types, in declaration order, of the method represented by this `Constructor` object.
    `Type` | Method.`getGenericReturnType()` Returns a `Type` object that represents the formal return type of the method represented by this `Method` object.
    `Type` | Field.`getGenericType()` Returns a `Type` object that represents the declared type for the field represented by this `Field` object.

Copyright © 2025 API Design. All Rights Reserved.