|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--DataStructures.StackList
A linked list implementation of a stack
| Constructor Summary | |
StackList()
|
|
| Method Summary | |
boolean |
isEmpty()
Indicates the status of the stack. |
java.lang.Object |
pop()
Pops an item off the stack. |
void |
push(java.lang.Object item)
Pushes an item onto the stack. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StackList()
| Method Detail |
public boolean isEmpty()
StackisEmpty in interface StackDataStructures.Stacktrue if the stack is empty.public void push(java.lang.Object item)
Stackpush in interface StackDataStructures.Stackitem - the Object to be pushed.public java.lang.Object pop()
Stackpop in interface StackDataStructures.StackNoSuchElementException - if the stack is empty.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||