Package scala.ref

package ref

Type Members

class PhantomReference[+T <: AnyRef] extends ReferenceWrapper[T]

trait Reference[+T <: AnyRef] extends () => T

See also

java.lang.ref.Reference

class ReferenceQueue[+T <: AnyRef] extends AnyRef

trait ReferenceWrapper[+T <: AnyRef] extends Reference[T] with Proxy

class SoftReference[+T <: AnyRef] extends ReferenceWrapper[T]

class WeakReference[+T <: AnyRef] 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.

Value Members

object SoftReference

object WeakReference

© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://www.scala-lang.org/api/2.13.0/scala/ref/index.html