java.lang.Object
net.neoforged.bus.LockHelper<K,V>
Helper class that should be faster then ConcurrentHashMap,
yet still manages to properly deal with many threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll()<I> VcomputeIfAbsent(K key, Function<K, V> factory) booleancontainsKey(K key) static <K,V> LockHelper<K, V> static <K,V> LockHelper<K, V>
-
Method Details
-
withHashMap
-
withIdentityHashMap
-
get
-
containsKey
-
computeIfAbsent
-
computeIfAbsent
-
clearAll
public void clearAll()
-