SoftReference

scala.ref.SoftReference$
See theSoftReference companion class
object SoftReference

A companion object that implements an extractor for SoftReference values

Attributes

Companion
class
Source
SoftReference.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[T <: AnyRef](value: T): SoftReference[T]

Creates a SoftReference pointing to value

Creates a SoftReference pointing to value

Attributes

Source
SoftReference.scala
def unapply[T <: AnyRef](sr: SoftReference[T]): Option[T]

Optionally returns the referenced value, or None if that value no longer exists

Optionally returns the referenced value, or None if that value no longer exists

Attributes

Source
SoftReference.scala