On this page
Class scala.ref.WeakReference
A wrapper class for java.lang.ref.WeakReference The new functionality is (1) results are Option values, instead of using null. (2) There is an extractor that maps the weak reference itself into an option.
Supertypes |
---|
Constructors
Source
def this(value: T)
Inherited methods
Source
def apply(): T
Inherited from | ReferenceWrapper |
---|
Source
Inherited from | ReferenceWrapper |
---|
Source
Inherited from | ReferenceWrapper |
---|
Source
Source
Definition Classes | ReferenceWrapper -> Reference |
---|---|
Inherited from | ReferenceWrapper |
Source
Source
def isEnqueued: Boolean
Inherited from | ReferenceWrapper |
---|
Source
Inherited from | ReferenceWrapper |
---|
Source
Concrete fields
Source
val underlying: WeakReference[_ <: T]
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/ref/WeakReference.html