Class WeakHashSet.Entry

All Implemented Interfaces:
Disposable
Enclosing class:
WeakHashSet<E>

private final class WeakHashSet.Entry extends WeakEntry<E>
A weak reference to an element. This is an element in a linked list. When the reference is disposed, it is removed from the enclosing set.
  • Constructor Details

    • Entry

      Entry(E obj, WeakHashSet<E>.Entry next, int hash)
      Constructs a new weak reference.
  • Method Details

    • dispose

      public void dispose()
      Invoked by ReferenceQueueConsumer for removing the reference from the enclosing collection.