getOrDefault

open fun getOrDefault(key: K, defaultValue: @UnsafeVariance V): V(source)

Returns the value corresponding to the given key, or defaultValue if such a key is not present in the map.

Since Kotlin

1.1

Since

JDK 1.8