org.apache.derby.iapi.services.context
Class ContextManager.CtxStack
java.lang.Object
org.apache.derby.iapi.services.context.ContextManager.CtxStack
- Enclosing class:
- ContextManager
private static final class ContextManager.CtxStack
- extends java.lang.Object
The CtxStack implement a stack on top of an ArrayList (to avoid
the inherent overhead associated with java.util.Stack which is
built on top of java.util.Vector, which is fully
synchronized).
Field Summary |
private java.util.ArrayList |
stack_
Internal list with all the elements of the stack. |
private Context |
top_
|
private java.util.List |
view_
Read-only view of the internal list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stack_
private final java.util.ArrayList stack_
- Internal list with all the elements of the stack.
view_
private final java.util.List view_
- Read-only view of the internal list.
top_
private Context top_
ContextManager.CtxStack
private ContextManager.CtxStack()
push
void push(Context context)
pop
void pop()
remove
void remove(Context context)
top
Context top()
isEmpty
boolean isEmpty()
getUnmodifiableList
java.util.List getUnmodifiableList()
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.