IdMapper

class IdMapper<I, V>

An ID mapping between an ID and a value.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun codec(idCodec: Codec<I>): Codec<V>

Creates an ID mapping codec for the given ID codec.

Link copied to clipboard
operator fun set(id: I, value: V)

Sets a value in the ID-value map.