Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 1

Type

public interface Type

java.lang.reflect.Type


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

default String getTypeName()

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

Public methods

getTypeName

added in API level 28
public String getTypeName ()

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

Implementation Requirements:
  • The default implementation calls toString.
Returns
String a string describing this type