StateKey

class StateKey<T>

This class holds information about state's name and its type tag to be used for serializing and deserializing it.

Parameters

<T>

the generic type of the state.

Functions

Link copied to clipboard
open fun bytes(name: String): StateKey<Array<Byte>>
Create a new StateKey for bytes state.
Link copied to clipboard
open fun name(): String
Link copied to clipboard
open fun <T> of(name: String, serde: Serde<T>): StateKey<T>
Create a new StateKey.
Link copied to clipboard
open fun serde(): Serde<T>