org.openejb.util
Class LinkedListStack
java.lang.Object
org.openejb.util.LinkedListStack
- All Implemented Interfaces:
- Stack
- public class LinkedListStack
- extends 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkedListStack
public LinkedListStack(int initialSize)
- Constructs this LinkedListStack with the specified number of LinkedEntry
objects all sequentially linked together.
- Parameters:
initialSize
-
push
public Object push(Object object)
- Specified by:
push
in interface Stack
pop
public Object pop()
throws EmptyStackException
- Specified by:
pop
in interface Stack
- Throws:
EmptyStackException
size
public int size()
- Specified by:
size
in interface Stack
Copyright © 1999-2007 OpenEJB. All Rights Reserved.