Encoder

fun interface Encoder<in I, out O>(source)

Converts domain values into a serialized representation.

Parameters

I

domain input type to be encoded.

O

serialized output type produced by the encoder.

Inheritors

Functions

Link copied to clipboard
abstract fun encode(input: I): O

Encodes the provided input into the serialized representation.