org.openejb.util
Class LinkedListStack

java.lang.Object
  extended by org.openejb.util.LinkedListStack
All Implemented Interfaces:
Stack

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


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)
           
 int size()
           
 
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
Throws:
java.util.EmptyStackException

size

public int size()
Specified by:
size in interface Stack


Copyright © 1999-2011 OpenEJB. All Rights Reserved.