Reference

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

Attributes

See also

java.lang.ref.Reference

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

def clear(): Unit
def enqueue(): Boolean
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

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
Function0 -> Any