![JAR search and dependency download from the Maven repository](/logo.png)
io.infinicast.ConcurrentHashmapExtensions Maven / Gradle / Ivy
package io.infinicast;
import java.util.concurrent.ConcurrentHashMap;
public class ConcurrentHashmapExtensions {
public static V getOrAdd(ConcurrentHashMap map,K key, V value) {
V result = map.putIfAbsent(key, value);
return null == result ? value : result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy