insertAll

abstract fun insertAll(entries: Map<out K, out V>)(source)

Adds all entries from another Map to the property value.

When invoked on a property with no value, this method first sets the value of the property to its current convention value, if set, or an empty map.

Since

8.7

Parameters

entries

a Map containing the entries to add


abstract fun insertAll(provider: Provider<out Map<out K, out V>>)(source)

Adds all entries from another Map to the property value.

The given provider will be queried when the value of this property is queried.

When invoked on a property with no value, this method first sets the value of the property to its current convention value, if set, or an empty map.

Even if the given provider has no value, after this method is invoked, the actual value of this property is guaranteed to be present.

Since

8.7

Parameters

provider

the provider of the entries