ofKeys

fun <FK, TK, V> ofKeys(keyConverter: ConvertsFrom<FK, TK>): ConvertsFrom<Map<FK, V>, Map<TK, V>>

Creates a one-way converter for transforming Map with keys of type TK to Map with keys of type FK. The values of the map are unchanged.

Parameters

FK

The type of keys being converted to

TK

The type of keys being converted from

V

The type of values

keyConverter

A one-way converter of TK keys to FK keys


fun <FK, TK, V> ofKeys(keyConverter: ConvertsTo<FK, TK>): ConvertsTo<Map<FK, V>, Map<TK, V>>

Creates a one-way converter for transforming Map with keys of type FK to Map with keys of type TK. The values of the map are unchanged.

Parameters

FK

The type of keys being converted from

TK

The type of keys being converted to

V

The type of values

keyConverter

A one-way converter of FK keys to TK keys


fun <FK, TK, V> ofKeys(keyConverter: Converter<FK, TK>): Converter<Map<FK, V>, Map<TK, V>>

Creates a two-way converter for transforming between Map with keys of type FK and Map with keys of type TK. The values of maps are unchanged.

Parameters

FK

The type of keys being converted from

TK

The type of keys being converted to

V

The type of values

keyConverter

A converter for transforming between keys of type FK and TK