ofValues

fun <K, FV, TV> ofValues(valueConverter: ConvertsFrom<FV, TV>): ConvertsFrom<Map<K, FV>, Map<K, TV>>

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

Parameters

K

The type of keys

FV

The type of values being converted to

TV

The type of values being converted from

valueConverter

A one-way converter of TV values to FV values


fun <K, FV, TV> ofValues(valueConverter: ConvertsTo<FV, TV>): ConvertsTo<Map<K, FV>, Map<K, TV>>

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

Parameters

K

The type of keys

FV

The type of values being converted from

TV

The type of values being converted to

valueConverter

A one-way converter of FV values to TV values


fun <K, FV, TV> ofValues(valueConverter: Converter<FV, TV>): Converter<Map<K, FV>, Map<K, TV>>

Creates a two-way converter for transforming between Map with values of type FV and Map with values of type TV. The keys of the map are unchanged.

Parameters

K

The type of keys

FV

The type of values being converted from

TV

The type of values being converted to

valueConverter

A converter for transforming between values of type FV and TV