Package org.apache.avro.util
Class MapUtil
java.lang.Object
org.apache.avro.util.MapUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Method Details
-
computeIfAbsent
public 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.- See Also:
-