org.apache.derby.iapi.services.context
Class ContextManager.CtxStack

java.lang.Object
  extended by 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.
 
Constructor Summary
private ContextManager.CtxStack()
           
 
Method Summary
(package private)  java.util.List getUnmodifiableList()
           
(package private)  boolean isEmpty()
           
(package private)  void pop()
           
(package private)  void push(Context context)
           
(package private)  void remove(Context context)
           
(package private)  Context top()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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_
Constructor Detail

ContextManager.CtxStack

private ContextManager.CtxStack()
Method Detail

push

void push(Context context)

pop

void pop()

remove

void remove(Context context)

top

Context top()

isEmpty

boolean isEmpty()

getUnmodifiableList

java.util.List getUnmodifiableList()

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.