org.apache.avalon.excalibur.collections
Class ArrayStack
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.ArrayList
|
+--org.apache.avalon.excalibur.collections.ArrayStack
- All Implemented Interfaces:
- Cloneable, Collection, List, RandomAccess, Serializable
Deprecated. use org.apache.commons.collections.ArrayStack instead;
- public class ArrayStack
- extends ArrayList
Unsynchronized stack.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.4 $ $Date: 2003/03/22 12:46:22 $
- Author:
- Peter Donald
- See Also:
- Serialized Form
Method Summary |
Object |
pop()
Deprecated. Remove element from top of stack and return it |
Object |
push(Object element)
Deprecated. Adds the object to the top of the stack. |
void |
setSize(int size)
Deprecated. |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
ArrayStack
public ArrayStack()
- Deprecated.
setSize
public void setSize(int size)
- Deprecated.
push
public Object push(Object element)
- Deprecated.
- Adds the object to the top of the stack.
- Parameters:
element
- object to add to stack
- Returns:
- the object
pop
public Object pop()
throws EmptyStackException
- Deprecated.
- Remove element from top of stack and return it
- Returns:
- the element from stack
- Throws:
EmptyStackException
- if no elements left on stack
Copyright © 2000-2003 Apache Jakarta Project. All Rights Reserved.