Class LinkedIdentityHashSet<E>

java.lang.Object
com.google.javascript.jscomp.base.LinkedIdentityHashSet<E>
All Implemented Interfaces:
Serializable

public final class LinkedIdentityHashSet<E> extends Object implements Serializable
A deterministic drop-in replacement for
invalid reference
Sets.newIdentityHashSet
.

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

invalid reference
Set
interface. Only the methods needed to eliminate
invalid reference
Sets.newIdentityHashSet
were defined. The entire interface could be satisfied in the future if necessary.
See Also:
  • Constructor Details

    • LinkedIdentityHashSet

      public LinkedIdentityHashSet()
  • Method Details

    • contains

      public boolean contains(E element)
    • add

      @CanIgnoreReturnValue public boolean add(E element)
    • remove

      @CanIgnoreReturnValue public boolean remove(E element)