Instance Constructors
-
new
WeakReference(value: T)
-
new
WeakReference(value: T, queue: ReferenceQueue[T])
Value Members
-
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
-
-
final
def
==(arg0: Any): Boolean
-
def
apply(): T
-
final
def
asInstanceOf[T0]: T0
-
def
clear(): Unit
-
def
clone(): AnyRef
-
def
enqueue(): Boolean
-
-
-
-
-
-
def
equals(that: Any): Boolean
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
isEnqueued(): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
self: java.lang.ref.Reference[_ <: T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
val
underlying: java.lang.ref.WeakReference[_ <: T]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
Inherited from () ⇒ T
Inherited from Any
A wrapper class for java.lag.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.