|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.datastructure.ThreadLocalStack
A stack associated with current thread
Constructor Summary | |
ThreadLocalStack()
|
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadLocalStack()
Method Detail |
public int pushLocal(java.lang.Object localObject)
localObject
- the local object
public Stack getLocalStack()
public java.lang.Object getLocal()
public void popLocalUtil(int i)
i
- the sizepublic java.lang.Object popLocal()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |