scala.ref

trait Reference

[source: scala/ref/Reference.scala]

trait Reference[+T <: AnyRef]
extends () => T
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 : String
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf