public class MapUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <K,V> V |
computeIfAbsent(ConcurrentMap<K,V> map,
K key,
Function<K,V> mappingFunction)
A temporary workaround for Java 8 specific performance issue JDK-8161372
.
This class should be removed once we drop Java 8 support. |
public static <K,V> V computeIfAbsent(ConcurrentMap<K,V> map, K key, Function<K,V> mappingFunction)
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.