public final class SimpleStack extends ArrayList
ArrayList.modCount| Constructor and Description |
|---|
SimpleStack()
Creates a new
SimpleStack. |
SimpleStack(Collection collection)
Creates a new
SimpleStack. |
SimpleStack(int initialCapacity)
Creates a new
SimpleStack. |
| Modifier and Type | Method and Description |
|---|---|
Object |
peek()
Return the top element of this
SimpleStack. |
Object |
pop()
Pops an object off of this
SimpleStack. |
void |
push(Object object)
Pushes an object onto this
SimpleStack. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodepublic SimpleStack()
SimpleStack.public SimpleStack(Collection collection)
SimpleStack.public SimpleStack(int initialCapacity)
SimpleStack.public void push(Object object)
SimpleStack.public Object pop() throws EmptyStackException
SimpleStack.EmptyStackExceptionpublic Object peek() throws EmptyStackException
SimpleStack.EmptyStackExceptionSee the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.