| java.lang.Object java.lang.ThreadLocal
ThreadLocal | public class ThreadLocal (Code) | | A ThreadLocal is a variable that has a per-thread value. Different Threads
may reference the same ThreadLocal object, but the values they observe will
not be == . This provides Thread local storage.
See Also: java.lang.Thread |
ThreadLocal | public ThreadLocal()(Code) | | Constructs a new ThreadLocal object
|
get | public T get()(Code) | | Return the value of this variable under
Thread.currentThread()
|
initialValue | protected T initialValue()(Code) | | Return the initial value of this variable under
Thread.currentThread()
|
set | public void set(T value)(Code) | | Set the value of this variable under Thread.currentThread()
|
|
|