org.openejb.util
Class LinkedListStack

java.lang.Object
  |
  +--org.openejb.util.LinkedListStack
All Implemented Interfaces:
Stack
Direct Known Subclasses:
StatelessInstanceManager.StackHolder

public class LinkedListStack
extends java.lang.Object
implements Stack

A First In First Out (FIFO) queue, also known as a Stack. Note: This is an implementation of org.openejb.util.Stack not to be confused with java.util.Stack


Inner Class Summary
(package private) static class LinkedListStack.LinkedEntry
           
 
Constructor Summary
LinkedListStack(int initialSize)
          Constructs this LinkedListStack with the specified number of LinkedEntry objects all sequentially linked together.
 
Method Summary
 java.lang.Object pop()
           
 java.lang.Object push(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedListStack

public LinkedListStack(int initialSize)
Constructs this LinkedListStack with the specified number of LinkedEntry objects all sequentially linked together.
Parameters:
initialSize -  
Method Detail

push

public java.lang.Object push(java.lang.Object object)
Specified by:
push in interface Stack

pop

public java.lang.Object pop()
                     throws java.util.EmptyStackException
Specified by:
pop in interface Stack