Added in API level 1

Type

interface Type
Class

Instances of the class represent classes and interfaces in a running Java application.

GenericArrayType

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

ParameterizedType

ParameterizedType represents a parameterized type such as Collection<String>.

TypeVariable

TypeVariable is the common superinterface for type variables of kinds.

WildcardType

WildcardType represents a wildcard type expression, such as ?, ? extends Number, or ? super Integer.

Type is the common superinterface for all types in the Java programming language. These include raw types, parameterized types, array types, type variables and primitive types.

Summary

Public methods
open String

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

Public methods

getTypeName

Added in API level 28
open fun getTypeName(): String

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

Return
String a string describing this type