final class ThreadLocalPools
extends java.lang.ThreadLocal<java.util.LinkedList<java.lang.Object>>
Constructor and Description |
---|
ThreadLocalPools() |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
getCurrent()
Gives the current element
|
protected java.util.LinkedList<java.lang.Object> |
initialValue() |
(package private) java.lang.Object |
isEmpty()
Indicates whether the stack is empty
|
(package private) void |
leftShift(java.lang.Object pool)
Adds a new element
|
(package private) void |
pop()
Removes the top (last) element
|
protected java.util.LinkedList<java.lang.Object> initialValue()
initialValue
in class java.lang.ThreadLocal<java.util.LinkedList<java.lang.Object>>
void leftShift(java.lang.Object pool)
pool
- The pool to storevoid pop()
java.lang.Object getCurrent()
java.lang.Object isEmpty()