class ThreadLocal[T <: AnyRef] extends AnyRef
- Alphabetic
- By Inheritance
- ThreadLocal
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ThreadLocal()
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get(): T
Returns the value of this variable for the current thread.
Returns the value of this variable for the current thread. If an entry doesn't yet exist for this variable on this thread, this method will create an entry, populating the value with the result of initialValue.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def initialValue(): T
Provides the initial value of this variable for the current thread.
Provides the initial value of this variable for the current thread. The default implementation returns
null
.- Attributes
- protected
- def initializeValues(current: Thread): Values
- Attributes
- protected[lang]
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def remove(): Unit
Removes the entry for this variable in the current thread.
Removes the entry for this variable in the current thread. If this call is followed by a get before a set, get will call initialValue and create a new entry with the resulting value.
- def set(value: T): Unit
Sets the value of this variable for the current thread.
Sets the value of this variable for the current thread. If set to null, the value will be set to null and the underlying entry will still be present.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def values(current: Thread): Values
Gets Values instance for this thread and variable type.
Gets Values instance for this thread and variable type.
- Attributes
- protected[lang]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: scala.Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()