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