spring-framework / org.springframework.util / CollectionUtils / toMultiValueMap

toMultiValueMap

open static fun <K : Any, V : Any> toMultiValueMap(map: MutableMap<K, MutableList<V>>): MultiValueMap<K, V>

Adapt a Map<K, List<V>> to an MultiValueMap<K, V>.

Parameters

map - the original map

Return
the multi-value map

Since
3.1