mapConvertsKeysTo

fun <F, TK, TK2, V> ConvertsTo<F, Map<TK, V>>.mapConvertsKeysTo(keyConverter: ConvertsTo<TK, TK2>): ConvertsTo<F, Map<TK2, V>>

Chains this map converter with a key converter, yielding a new converter which performs a two-stage mapping conversion. (Note that these two "stages" are conceptual. Each of these stages may consist of multiple logical steps in their actual implementation.)

Parameters

F

The source type of this converter

TK

The type of keys being converted from

TK2

The type of keys being converted to

V

The type of values

keyConverter

The key converter to chain together with this map converter. Note that the source type of the given keyConverter must be the same as the target key type of this converter.