Class LockHelper<K,V>

java.lang.Object
net.neoforged.bus.LockHelper<K,V>

public class LockHelper<K,V> extends Object
  • Method Details

    • withHashMap

      public static <K, V> LockHelper<K,V> withHashMap()
    • withIdentityHashMap

      public static <K, V> LockHelper<K,V> withIdentityHashMap()
    • get

      public V get(K key)
    • containsKey

      public boolean containsKey(K key)
    • computeIfAbsent

      public V computeIfAbsent(K key, Function<K,V> factory)
    • computeIfAbsent

      public <I> V computeIfAbsent(K key, Function<K,I> factory, Function<I,V> finalizer)
    • clearAll

      public void clearAll()