Scala Library
|
|
scala/ref/Reference.scala
]
trait
Reference[+T <: AnyRef]
extends
() => Tjava.lang.ref.Reference
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
Returns a string representation of the object.
|
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 |
abstract
def
isValid : Boolean
abstract
def
apply : T
Some
underlying if it hasn't been collected, otherwise None
override
def
toString : java.lang.String
The default representation is platform dependent.
abstract
def
clear : Unit
abstract
def
enqueue : Boolean
abstract
def
isEnqueued : Boolean
Scala Library
|
|