Build 1.0_r1(from source)

java.lang
Class ThreadLocal.Values

java.lang.Object
  extended by java.lang.ThreadLocal.Values
Enclosing class:
ThreadLocal<T>

static class ThreadLocal.Values
extends Object

Per-thread map of ThreadLocal instances to values.


Constructor Summary
ThreadLocal.Values()
          Constructs a new, empty instance.
ThreadLocal.Values(ThreadLocal.Values fromParent)
          Used for InheritableThreadLocals.
 
Method Summary
(package private)  void add(ThreadLocal<?> key, Object value)
          Adds an entry during rehashing.
(package private)  Object getAfterMiss(ThreadLocal<?> key)
          Gets value for given ThreadLocal after not finding it in the first slot.
(package private)  void put(ThreadLocal<?> key, Object value)
          Sets entry for given ThreadLocal to given value, creating an entry if necessary.
(package private)  void remove(ThreadLocal<?> key)
          Removes entry for the given ThreadLocal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocal.Values

ThreadLocal.Values()
Constructs a new, empty instance.


ThreadLocal.Values

ThreadLocal.Values(ThreadLocal.Values fromParent)
Used for InheritableThreadLocals.

Method Detail

add

void add(ThreadLocal<?> key,
         Object value)
Adds an entry during rehashing. Compared to put(), this method doesn't have to clean up, check for existing entries, account for tombstones, etc.


put

void put(ThreadLocal<?> key,
         Object value)
Sets entry for given ThreadLocal to given value, creating an entry if necessary.


getAfterMiss

Object getAfterMiss(ThreadLocal<?> key)
Gets value for given ThreadLocal after not finding it in the first slot.


remove

void remove(ThreadLocal<?> key)
Removes entry for the given ThreadLocal.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature