|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.ArrayList | +--org.apache.avalon.excalibur.collections.ArrayStack
Unsynchronized stakc.
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
ArrayStack()
|
Method Summary | |
java.lang.Object |
pop()
Remove element from top of stack and return it |
java.lang.Object |
push(java.lang.Object element)
Adds the object to the top of the stack. |
void |
setSize(int size)
|
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 |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
Constructor Detail |
public ArrayStack()
Method Detail |
public void setSize(int size)
public java.lang.Object push(java.lang.Object element)
element
- object to add to stackpublic java.lang.Object pop() throws java.util.EmptyStackException
java.util.EmptyStackException
- if no elements left on stack
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |