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, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public SimpleStack()
SimpleStack
.public SimpleStack(Collection collection)
SimpleStack
.public SimpleStack(int initialCapacity)
SimpleStack
.public void push(Object object)
SimpleStack
.public Object pop() throws EmptyStackException
SimpleStack
.EmptyStackException
public Object peek() throws EmptyStackException
SimpleStack
.EmptyStackException
See 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.