Scala Library: scala.ref
scala.ref
Type Members
class PhantomReference[+T <: AnyRef] extends ReferenceWrapper[T]
trait Reference[+T <: AnyRef] extends () ⇒ T
- Source
- 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
A companion object that implements an extractor for SoftReference
values
object WeakReference
An extractor for weak reference values
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.