final classWeakHashSet[A] extends Set[A] with (A) ⇒ Boolean with scala.collection.mutable.Set[A]
A HashSet where the elements are stored weakly.
A HashSet where the elements are stored weakly. Elements in this set are eligible for GC if no other
hard references are associated with them. Its primary use case is as a canonical reference
identity holder (aka "hash-consing") via findEntryOrUpdate
This Set implementation cannot hold null. Any attempt to put a null in it will result in a NullPointerException
This set implementation is not in general thread safe without external concurrency control. However it behaves
properly when GC concurrently collects elements in this set.
Copied from the scala.reflect.internal.util code but without the AnyRef constraint
A HashSet where the elements are stored weakly. Elements in this set are eligible for GC if no other hard references are associated with them. Its primary use case is as a canonical reference identity holder (aka "hash-consing") via findEntryOrUpdate
This Set implementation cannot hold null. Any attempt to put a null in it will result in a NullPointerException
This set implementation is not in general thread safe without external concurrency control. However it behaves properly when GC concurrently collects elements in this set.
Copied from the scala.reflect.internal.util code but without the AnyRef constraint