Class LinkedIdentityHashMap<K,V>

java.lang.Object
com.google.javascript.jscomp.base.LinkedIdentityHashMap<K,V>
All Implemented Interfaces:
Serializable

public final class LinkedIdentityHashMap<K,V> extends Object implements Serializable
A deterministic drop-in replacement for IdentityHashMap.

This class is actually "map-like" in that it doesn't fully implement the

invalid reference
Map
interface. Only the methods needed to eliminate IdentityHashMap were defined. The entire interface could be satisfied in the future if necessary.
See Also:
  • Constructor Details Link icon

    • LinkedIdentityHashMap Link icon

      public LinkedIdentityHashMap()
  • Method Details Link icon

    • get Link icon

      public @Nullable V get(K key)
    • put Link icon

      @CanIgnoreReturnValue public @Nullable V put(K key, V value)
    • computeIfAbsent Link icon

      @CanIgnoreReturnValue public @Nullable V computeIfAbsent(K key, Function<? super K,? extends V> fn)
    • merge Link icon

      @CanIgnoreReturnValue public @Nullable V merge(K key, V value, BiFunction<? super V,? super V,? extends V> fn)
    • forEach Link icon

      public void forEach(BiConsumer<? super K,? super V> fn)