|
||||||||
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.openejb.util.ArrayStack
Unsynchronized Stack.
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
ArrayStack()
|
Method Summary | |
java.lang.Object |
peek()
Looks at the object at the top of this stack without removing it from the stack. |
java.lang.Object |
pop()
Removes the object at the top of this stack and returns that object as the value of this function. |
java.lang.Object |
push(java.lang.Object item)
Adds the object to the top of the stack. |
void |
setSize(int newSize)
Sets the size of the stack and prunes entries from the top of the stack that exceed the stack's new 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 |
|
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 newSize)
public java.lang.Object push(java.lang.Object item)
push
in interface Stack
public java.lang.Object pop()
pop
in interface Stack
java.util.EmptyStackException
- if this stack is empty.public java.lang.Object peek()
java.util.EmptyStackException
- if this stack is empty.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |