scala.ref
trait ReferenceWrapper

[source: `scala/ref/ReferenceWrapper.scala`]

`` `trait` ReferenceWrapper[+T <: AnyRef]
  `extends` Reference[T]

Author
  Seam McDirmid

Direct Known Subclasses:
  PhantomReference, ReferenceQueue.Wrapper, SoftReference, WeakReference

Value Summary
`abstract val` | underlying : Reference

Method Summary
`def` | apply : T return the underlying value
`def` | clear : Unit
`def` | enqueue : Boolean
`override def` | get : Option[T] return `Some` underlying if it hasn't been collected, otherwise `None`
`def` | isEnqueued : Boolean
`def` | isValid : Boolean

Methods inherited from Reference
toString

Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Value Details

`abstract` `val` underlying : Reference

Method Details

@deprecated
`` `def` isValid : Boolean

Overrides
  Reference.isValid

`override` `def` get : Option[T]

  return `Some` underlying if it hasn't been collected, otherwise `None`

Overrides
  Reference.get

`` `def` apply : T

  return the underlying value

Overrides
  Reference.apply

`` `def` clear : Unit

Overrides
  Reference.clear

`` `def` enqueue : Boolean

Overrides
  Reference.enqueue

`` `def` isEnqueued : Boolean

Overrides
  Reference.isEnqueued