Kotlin HashMap setValue()
Syntax & Examples


Syntax of HashMap.setValue()

The syntax of HashMap.setValue() extension function is:

operator fun <V> MutableMap<in String, in V>.setValue( thisRef: Any?, property: KProperty<*>, value: V)

This setValue() extension function of HashMap stores the value of the property for the given object in this mutable map.