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.
- Companion
- object
trait Shrinkable[A]
trait Clearable
trait Cloneable
trait Equals
trait IterableOnce[A]
class Object
trait Matchable
class Any
Type members
Types
Value members
Constructors
Concrete methods
Inherited methods
- Inherited from
- IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
- Inherited from
- IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
- Inherited from
- IterableOnceOps
@deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
- Inherited from
- IterableOnceOps
Deprecated and Inherited methods
@deprecated("Use ++ with an explicit collection argument instead of + with varargs", "2.13.0")
- Deprecated
- Inherited from
- SetOps
@deprecated("Consider requiring an immutable Set or fall back to Set.union", "2.13.0")
- Deprecated
- Inherited from
- SetOps
@deprecated("Use ++ instead of ++: for collections of type Iterable", "2.13.0")
- Deprecated
- Inherited from
- IterableOps
@inline @deprecated("Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated", "2.13.0")
- Deprecated
- Inherited from
- Growable
@deprecated("Use &- with an explicit collection argument instead of - with varargs", "2.13.0")
- Deprecated
- Inherited from
- SetOps
@deprecated("Consider requiring an immutable Set or fall back to Set.diff", "2.13.0")
- Deprecated
- Inherited from
- SetOps
@deprecated("Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated", "2.13.3")
- Deprecated
- Inherited from
- Shrinkable
@inline @deprecated("Use foldRight instead of :\\", "2.13.0")
- Deprecated
- Inherited from
- IterableOnceOps
@deprecated("`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", "2.13.0")
- Deprecated
- Inherited from
- IterableOnceOps
@inline @deprecatedOverriding("Use iterableFactory instead", "2.13.0") @deprecated("Use iterableFactory instead", "2.13.0")
- Deprecated
- Inherited from
- IterableOps
@inline @deprecated("Use `dest ++= coll` instead", "2.13.0")
- Deprecated
- Inherited from
- IterableOnceOps
@deprecated("Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", "2.13.0")
- Deprecated
- Inherited from
- IterableOnceOps
@deprecated("Use coll instead of repr in a collection implementation, use the collection value itself from the outside", "2.13.0")
- Deprecated
- Inherited from
- IterableOps
@deprecated("Iterable.seq always returns the iterable itself", "2.13.0")
- Deprecated
- Inherited from
- Iterable
@inline @deprecated("Use .iterator instead of .toIterator", "2.13.0")
- Deprecated
- Inherited from
- IterableOnceOps
@inline @deprecated("Use .to(LazyList) instead of .toStream", "2.13.0")
- Deprecated
- Inherited from
- IterableOnceOps
@deprecated("Use .view.slice(from, until) instead of .view(from, until)", "2.13.0")
- Deprecated
- Inherited from
- IterableOps