Generated with
Copyright (c) 2002-2026, LAMP/EPFL
Copyright (c) 2002-2026, LAMP/EPFL
scala.ref.SoftReference
See theSoftReference companion class
A companion object that implements an extractor for SoftReference values
Members list
Creates a SoftReference pointing to value.
Creates a SoftReference pointing to value.
Type parameters
-
T
-
the type of the referenced object, must be a reference type
Value parameters
-
value
-
the object to be softly referenced; may be reclaimed by the garbage collector when memory is low
Attributes
-
Source
-
SoftReference.scala
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.
Type parameters
-
T
-
the type of the referenced object, must be a reference type
Value parameters
-
sr
-
the SoftReference to extract the value from
Attributes
-
Source
-
SoftReference.scala