TypeRef

abstract class TypeRef<T> : TypeTag<T>

This generic abstract class is used for obtaining full generics type information by sub-classing. Similar to Jackson's TypeReference.

Properties

Link copied to clipboard
val type: Type

Functions

Link copied to clipboard
open fun <T> of(serde: Serde<T>): TypeTag<T>
open fun <T> of(type: TypeRef<T>): TypeTag<T>

open fun <T> of(type: Class<T>): TypeTag<T>
Create a TypeTag from a java.lang.Class.