put

abstract fun put(key: K, value: V)(source)

Adds a map entry to the property value.

Contrary to insert, if this property has no value, this operation has no effect on the value of this property.

Parameters

key

the key

value

the value


abstract fun put(key: K, providerOfValue: Provider<out V>)(source)

Adds a map entry to the property value.

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

Contrary to insert, if this property has no value, this operation has no effect on the value of this property.

Also contrary to insert, this property will have no value when the given provider has no value.

Parameters

key

the key

providerOfValue

the provider of the value