java.lang
Class ThreadLocal.ThreadLocalMap

java.lang.Object
  |
  +--java.lang.ThreadLocal.ThreadLocalMap
Enclosing class:
ThreadLocal

static class ThreadLocal.ThreadLocalMap
extends Object


Nested Class Summary
private static class ThreadLocal.ThreadLocalMap.Entry
           
 
Field Summary
private static int INITIAL_CAPACITY
           
private  int size
           
private  ThreadLocal.ThreadLocalMap.Entry[] table
           
private  int threshold
           
 
Constructor Summary
private ThreadLocal.ThreadLocalMap(ThreadLocal.ThreadLocalMap)
           
(package private) ThreadLocal.ThreadLocalMap(ThreadLocal, Object)
           
 
Method Summary
private  void expungeStaleEntries()
           
private  void expungeStaleEntry(int)
           
private  Object get(ThreadLocal)
           
private  Object getAfterMiss(ThreadLocal, int, ThreadLocal.ThreadLocalMap.Entry)
           
private static int nextIndex(int, int)
           
private static int prevIndex(int, int)
           
private  void rehash()
           
private  Object replaceStaleEntry(ThreadLocal, Object, int, boolean)
           
private  void resize()
           
private  void set(ThreadLocal, Object)
           
private  void setThreshold(int)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_CAPACITY

private static final int INITIAL_CAPACITY
See Also:
Constant Field Values

table

private ThreadLocal.ThreadLocalMap.Entry[] table

size

private int size

threshold

private int threshold
Constructor Detail

ThreadLocal.ThreadLocalMap

ThreadLocal.ThreadLocalMap(ThreadLocal,
                           Object)

ThreadLocal.ThreadLocalMap

private ThreadLocal.ThreadLocalMap(ThreadLocal.ThreadLocalMap)
Method Detail

setThreshold

private void setThreshold(int)

nextIndex

private static int nextIndex(int,
                             int)

prevIndex

private static int prevIndex(int,
                             int)

get

private Object get(ThreadLocal)

getAfterMiss

private Object getAfterMiss(ThreadLocal,
                            int,
                            ThreadLocal.ThreadLocalMap.Entry)

set

private void set(ThreadLocal,
                 Object)

replaceStaleEntry

private Object replaceStaleEntry(ThreadLocal,
                                 Object,
                                 int,
                                 boolean)

expungeStaleEntry

private void expungeStaleEntry(int)

rehash

private void rehash()

resize

private void resize()

expungeStaleEntries

private void expungeStaleEntries()