public class ConcurrentHashMapUtils extends Object
| Constructor and Description |
|---|
ConcurrentHashMapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> V |
computeIfAbsent(ConcurrentMap<K,V> map,
K key,
Function<? super K,? extends V> func)
A temporary workaround for Java 8 ConcurrentHashMap#computeIfAbsent specific performance issue: JDK-8161372.
|
public static <K,V> V computeIfAbsent(ConcurrentMap<K,V> map, K key, Function<? super K,? extends V> func)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.