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.

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
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
Inherited from
ReferenceWrapper
def clear(): Unit
Inherited from
ReferenceWrapper
Inherited from
ReferenceWrapper
override def equals(that: Any): Boolean
Definition Classes
Proxy -> Any
Inherited from
Proxy
override def get: Option[T]
Definition Classes
Inherited from
ReferenceWrapper
override def hashCode: Int
Definition Classes
Proxy -> Any
Inherited from
Proxy
def self: Reference[_ <: T]
Inherited from
ReferenceWrapper
override def toString: String
Definition Classes
Proxy -> Any
Inherited from
Proxy

Concrete fields