computeIfPresentCompat

fun <K, V> ConcurrentHashMap<K, V>.computeIfPresentCompat(key: K & Any, computation: (K, V) -> V?)

Wraps ConcurrentHashMap.computeIfPresent in an SDK version agnostic API.

Many Java 8 methods are not available prior to Build.VERSION_CODES.N. https://developer.android.com/sdk/api_diff/24/changes