WeakReference

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:
WeakReference.scala
trait Proxy
trait Reference[T]
trait () => T
class Object
trait Matchable
class Any

Value members

Constructors

def this(value: T)

Inherited methods

def apply(): T
override def equals(that: Any): Boolean
Definition Classes
Inherited from:
Proxy
Source:
Proxy.scala
override def get: Option[T]
Definition Classes
Inherited from:
ReferenceWrapper
Source:
ReferenceWrapper.scala
override def hashCode: Int
Definition Classes
Inherited from:
Proxy
Source:
Proxy.scala
def self: Reference[_ <: T]
override def toString: String
Definition Classes
Inherited from:
Proxy
Source:
Proxy.scala

Concrete fields