JML

java.lang
Class ThreadLocal.ThreadLocalMap

java.lang.Object
  extended byjava.lang.ThreadLocal.ThreadLocalMap
Enclosing class:
ThreadLocal

static class ThreadLocal.ThreadLocalMap
extends Object


Nested Class Summary
private static class ThreadLocal.ThreadLocalMap.Entry
           
 
Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
private static int INITIAL_CAPACITY
           
private  int size
           
private  ThreadLocal.ThreadLocalMap.Entry[] table
           
private  int threshold
           
 
Constructor Summary
(package private) ThreadLocal.ThreadLocalMap(ThreadLocal, Object)
           
private ThreadLocal.ThreadLocalMap(ThreadLocal.ThreadLocalMap)
           
(package private) ThreadLocal.ThreadLocalMap(ThreadLocal.ThreadLocalMap, ThreadLocal.1)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
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

threshold

private int threshold

size

private int size

table

private ThreadLocal.ThreadLocalMap.Entry[] table

INITIAL_CAPACITY

private static final int INITIAL_CAPACITY
Constructor Detail

ThreadLocal.ThreadLocalMap

private ThreadLocal.ThreadLocalMap(ThreadLocal.ThreadLocalMap)

ThreadLocal.ThreadLocalMap

ThreadLocal.ThreadLocalMap(ThreadLocal,
                           Object)

ThreadLocal.ThreadLocalMap

ThreadLocal.ThreadLocalMap(ThreadLocal.ThreadLocalMap,
                           ThreadLocal.1)
Method Detail

expungeStaleEntries

private void expungeStaleEntries()

rehash

private void rehash()

resize

private void resize()

expungeStaleEntry

private void expungeStaleEntry(int)

setThreshold

private void setThreshold(int)

nextIndex

private static int nextIndex(int,
                             int)

prevIndex

private static int prevIndex(int,
                             int)

get

private Object get(ThreadLocal)

set

private void set(ThreadLocal,
                 Object)

replaceStaleEntry

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

getAfterMiss

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

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.