scala / 3.1 / scala / ref / softreference$.html

Object scala.ref.SoftReference

object SoftReference

A companion object that implements an extractor for SoftReference values

Supertypes
Self type

Concrete methods

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

Creates a SoftReference pointing to value

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

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

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/ref/SoftReference$.html