TypeTag

interface TypeTag<T>

This interface is used by the serialization stack to carry types runtime information. It is used by the configured SerdeFactory to construct the concrete Serde.

Subclasses include TypeRef, Class and Serde itself.

Inheritors

Types

Link copied to clipboard
class Class<T> : Record, TypeTag<T>

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.