Type Ref
A reified type. Conveys generic type information at run time.
Create new instances with the typeRef factory method:
val listOfStrings = typeRef<List<String>>()
Content copied to clipboard
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.