of

fun <FK, FV, TK, TV> of(entryConverter: ConvertsFrom<Pair<FK, FV>, Pair<TK, TV>>): ConvertsFrom<Map<FK, FV>, Map<TK, TV>>

Creates a one-way converter for transforming Map with keys of type TK and values of type TV to Map with keys of type FK and values of type FV

Parameters

FK

The type of keys being converted to

FV

The type of values being converted to

TK

The type of keys being converted from

TV

The type of values being converted from

entryConverter

A one-way converter of TK/TV pairs to FK/FV pairs


fun <FK, FV, TK, TV> of(entryConverter: ConvertsTo<Pair<FK, FV>, Pair<TK, TV>>): ConvertsTo<Map<FK, FV>, Map<TK, TV>>

Creates a one-way converter for transforming Map with keys of type FK and values of type FV to Map with keys of type TK and values of type TV

Parameters

FK

The type of keys being converted from

FV

The type of values being converted from

TK

The type of keys being converted to

TV

The type of values being converted to

entryConverter

A one-way converter of FK/FV pairs to TK/TV pairs


fun <FK, FV, TK, TV> of(entryConverter: Converter<Pair<FK, FV>, Pair<TK, TV>>): Converter<Map<FK, FV>, Map<TK, TV>>

Creates a two-way converter for transforming between Map with keys of type FK and values of type FV to Map with keys of type TK and values of type TV

Parameters

FK

The type of keys being converted from

FV

The type of values being converted from

TK

The type of keys being converted to

TV

The type of values being converted to

entryConverter

A converter for transforming between FK/FV pairs and TK/TV pairs