Java java.lang ThreadLocal fields, constructors, methods, implement or subclass

Example usage for Java java.lang ThreadLocal fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang ThreadLocal.

The text is from its open source code.

Subclass

java.lang.ThreadLocal has subclasses.
Click this link to see all its subclasses.

Constructor

ThreadLocal()
Creates a thread local variable.

Method

Tget()
Returns the value in the current thread's copy of this thread-local variable.
ClassgetClass()
Returns the runtime class of this Object .
voidremove()
Removes the current thread's value for this thread-local variable.
voidset(T value)
Sets the current thread's copy of this thread-local variable to the specified value.
ThreadLocalwithInitial(Supplier supplier)
Creates a thread local variable.