public class ConcurrentHashMapUtils extends Object
| 构造器和说明 |
|---|
ConcurrentHashMapUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2023 The Apache Software Foundation. All rights reserved.