org.onemind.commons.java.datastructure
public class ThreadLocalStack extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.ThreadLocal |
_local
the thread local *
|
Constructor and Description |
---|
ThreadLocalStack() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getLocal()
Get the top-most local object in local stack
|
Stack |
getLocalStack()
get the local stack
|
java.lang.Object |
popLocal()
Pop the top-most local object in threadlocal stack
|
void |
popLocalUtil(int i)
Pop uptil certain size in local stack
|
int |
pushLocal(java.lang.Object localObject)
Push a local object the the thread local stack
|
public int pushLocal(java.lang.Object localObject)
localObject
- the local objectpublic Stack getLocalStack()
public java.lang.Object getLocal()
public void popLocalUtil(int i)
i
- the sizepublic java.lang.Object popLocal()