← Docs
kotlin-stdlib / kotlin.collections / java.util.concurrent.ConcurrentMap

Extensions for java.util.concurrent.ConcurrentMap

JVM
1.0

getOrPut

Concurrent getOrPut, that is safe for concurrent maps.

fun < K , V > ConcurrentMap < K , V > . getOrPut (
key : K ,
defaultValue : ( ) -> V
) : V
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .