scala.ref

trait Reference

[source: scala/ref/Reference.scala]

trait Reference[+T <: AnyRef]
extends () => T
See Also
java.lang.ref.Reference
Author
Sean McDirmid
Direct Known Subclasses:
ReferenceWrapper

Method Summary
abstract def apply : T
return the underlying value
abstract def clear : Unit
abstract def enqueue : Boolean
abstract def get : Option[T]
return Some underlying if it hasn't been collected, otherwise None
abstract def isEnqueued : Boolean
abstract def isValid : Boolean
override def toString : java.lang.String
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
@deprecated

abstract def isValid : Boolean

abstract def apply : T
return the underlying value
Overrides
Function0.apply

abstract def get : Option[T]
return Some underlying if it hasn't been collected, otherwise None

override def toString : java.lang.String
Overrides
Function0.toString

abstract def clear : Unit

abstract def enqueue : Boolean

abstract def isEnqueued : Boolean