Class ContextManager.CtxStack

java.lang.Object
org.apache.derby.iapi.services.context.ContextManager.CtxStack
Enclosing class:
ContextManager

private static final class ContextManager.CtxStack extends 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 Details

    • stack_

      private final ArrayList<Context> stack_
      Internal list with all the elements of the stack.
    • view_

      private final List<Context> view_
      Read-only view of the internal list.
    • top_

      private Context top_
  • Constructor Details

    • CtxStack

      private CtxStack()
  • Method Details

    • push

      void push(Context context)
    • pop

      void pop()
    • remove

      void remove(Context context)
    • top

      Context top()
    • isEmpty

      boolean isEmpty()
    • getUnmodifiableList

      List<Context> getUnmodifiableList()