Top Constructors Methods
org.apache.avro.util

public Class MapUtil

extends Object
Class Inheritance
Imports
java.util.concurrent.ConcurrentMap, java.util.function.Function

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
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 .

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MapUtilback to summary
private MapUtil()

Method Detail

computeIfAbsentback to summary
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
JDK-8161372