TypeRef

abstract class TypeRef<T>

A reified type. Conveys generic type information at run time.

Create new instances with the typeRef factory method:

val listOfStrings = typeRef<List<String>>()

Implementation Note:* The KType returned by typeOf includes an unannotated version of the Java type. To ensure important annotations are available to Java data binding libraries, we capture the Java type separately using the technique described in Neal Gafter's article on Super Type Tokens.

Parameters

The type to represent

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Type

Functions

Link copied to clipboard
open override fun toString(): String