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

keyConverter

A one-way converter of TK keys to FK keys

Type Parameters

FK

The type of keys being converted to

TK

The type of keys being converted from

V

The type of values


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

keyConverter

A one-way converter of FK keys to TK keys

Type Parameters

FK

The type of keys being converted from

TK

The type of keys being converted to

V

The type of values


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

keyConverter

A converter for transforming between keys of type FK and TK

Type Parameters

FK

The type of keys being converted from

TK

The type of keys being converted to

V

The type of values