TypeRef

abstract class TypeRef<T>

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

Create new instances with the typeRef factory method:

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

Uses the technique described in Neal Gafter's article on Super Type Tokens.

Parameters

The type to represent

Functions

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

Properties

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