scala.ref

package scala.ref

Type members

Classlikes

class PhantomReference[+T <: AnyRef](value: T, queue: ReferenceQueue[T]) extends ReferenceWrapper[T]
Source
(source)
trait Reference[+T <: AnyRef] extends () => T
See also
java.lang.ref.Reference
Source
(source)
class ReferenceQueue[+T <: AnyRef]
Source
(source)
@nowarn("cat=deprecation")
trait ReferenceWrapper[+T <: AnyRef] extends Reference[T] with Proxy
Source
(source)
class SoftReference[+T <: AnyRef](value: T, queue: ReferenceQueue[T]) extends ReferenceWrapper[T]
Companion
object
Source
(source)
A companion object that implements an extractor for SoftReference values
Companion
class
Source
(source)
class WeakReference[+T <: AnyRef](value: T, queue: ReferenceQueue[T]) extends ReferenceWrapper[T]
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.
Companion
object
Source
(source)
An extractor for weak reference values
Companion
class
Source
(source)