Encapsulator

data class Encapsulator<T : Any>(val klass: KClass<T>, val serializer: <Error class: unknown class><T>)

Constructors

Link copied to clipboard
fun <T : Any> Encapsulator(klass: KClass<T>, serializer: <Error class: unknown class><T>)

Functions

Link copied to clipboard
fun <O> encapsulate(value: Any, callback: <Error class: unknown class><T>.(T) -> O): O?

Properties

Link copied to clipboard
val klass: KClass<T>
Link copied to clipboard
val serializer: <Error class: unknown class><T>

Extensions

Link copied to clipboard
fun <T : Any> Encapsulator<T>.tryEncode(encoder: <Error class: unknown class>, value: Any): <Error class: unknown class>