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 : java.lang.ref.Reference

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

Methods inherited from Reference
toString

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

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

Value Details

`abstract` `val` underlying : java.lang.ref.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

`override` `def` hashCode : Int

`override` `def` equals(that : Any) : Boolean