Reference

scala.ref.Reference
trait Reference[+T <: AnyRef] extends () => T

Attributes

See also

java.lang.ref.Reference

Source
Reference.scala
Graph
Supertypes
trait () => T
class Object
trait Matchable
class Any
Known subtypes
trait ReferenceWrapper[T]
class PhantomReference[T]
class SoftReference[T]
class WeakReference[T]

Members list

Value members

Abstract methods

def apply(): T

return the underlying value

return the underlying value

Attributes

Source
Reference.scala
def clear(): Unit

Attributes

Source
Reference.scala
def enqueue(): Boolean

Attributes

Source
Reference.scala
def get: Option[T]

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

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

Attributes

Source
Reference.scala

Attributes

Source
Reference.scala

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Source
Reference.scala