|
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
com.phoenixst.collections.SimpleStack
public final class SimpleStack
A simple stack data structure, basically a convenience extension
of ArrayList.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
SimpleStack()
Creates a new SimpleStack. |
|
SimpleStack(Collection collection)
Creates a new SimpleStack. |
|
SimpleStack(int initialCapacity)
Creates a new SimpleStack. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, 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, 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, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public SimpleStack()
SimpleStack.
public SimpleStack(Collection collection)
SimpleStack.
public SimpleStack(int initialCapacity)
SimpleStack.
| Method Detail |
|---|
public void push(Object object)
SimpleStack.
public Object pop()
throws EmptyStackException
SimpleStack.
EmptyStackException
public Object peek()
throws EmptyStackException
SimpleStack.
EmptyStackException
|
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||