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

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

Properties

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