MapMappingConverter

A map-mapping Converter which performs two-way conversions between values of type Map<LK, LV> and values of type Map<RK, RV>

Type Parameters

LK

The left key type

LV

The left value type

RK

The right key type

RV

The right value type

Constructors

Link copied to clipboard
constructor(delegate: Converter<Pair<LK, LV>, Pair<RK, RV>>)

Create a map-mapping Converter which performs two-way conversions between values of type Map<LK, LV> and values of type Map<RK, RV>

constructor(keyDelegate: Converter<LK, RK>, valueDelegate: Converter<LV, RV>)

Create a map-mapping Converter which performs two-way conversions between values of type Map<LK, LV> and values of type Map<RK, RV>

Functions

Link copied to clipboard
open override fun convertLeft(from: Map<RK, RV>): Map<LK, LV>

Converts a right value into a left value

Link copied to clipboard
open override fun convertRight(from: Map<LK, LV>): Map<RK, RV>

Converts a left value into a right value