java.lang
Class ThreadLocal.ThreadLocalMap.Entry

java.lang.Object
  extended byjava.lang.ref.Reference
      extended byjava.lang.ref.WeakReference
          extended byjava.lang.ThreadLocal.ThreadLocalMap.Entry
Enclosing class:
ThreadLocal.ThreadLocalMap

private static class ThreadLocal.ThreadLocalMap.Entry
extends WeakReference

The entries in this hash map extend WeakReference, using its main ref field as the key (which is always a ThreadLocal object). Note that null keys (i.e. entry.get() == null) mean that the key is no longer referenced, so the entry can be expunged from table. Such entries are referred to as "stale entries" in the code that follows.


Nested Class Summary
 
Nested classes inherited from class java.lang.ref.Reference
 
Field Summary
private  Object value
          The value associated with this ThreadLocal.
 
Fields inherited from class java.lang.ref.Reference
 
Constructor Summary
private ThreadLocal.ThreadLocalMap.Entry(ThreadLocal k, Object v)
           
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private Object value
The value associated with this ThreadLocal.

Constructor Detail

ThreadLocal.ThreadLocalMap.Entry

private ThreadLocal.ThreadLocalMap.Entry(ThreadLocal k,
                                         Object v)