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

mergePropertiesIntoMap

open static fun <K : Any, V : Any> mergePropertiesIntoMap(@Nullable props: Properties, map: MutableMap<K, V>): Unit

Merge the given Properties instance into the given Map, copying all properties (key-value pairs) over.

Uses Properties.propertyNames() to even catch default properties linked into the original Properties instance.

Parameters

props - the Properties instance to merge (may be null)

map - the target Map to merge the properties into