|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.dataStructure.Stack
Simple Stack implementation
Copyright (c) 2004
Institution: Columbia University
| Constructor Summary | |
Stack()
Deprecated. Build a stack with the default capacity. |
|
Stack(int capacity)
Deprecated. Build a stack with a given capacity. |
|
| Method Summary | |
boolean |
isEmpty()
Deprecated. |
boolean |
isFull()
Deprecated. |
java.lang.Object |
pop()
Deprecated. Remove the most recently added item. |
void |
push(java.lang.Object obj)
Deprecated. Add an item to the stack. |
java.lang.Object |
top()
Deprecated. Get the most recently added item, without removing it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Stack()
public Stack(int capacity)
capacity - int| Method Detail |
public java.lang.Object pop()
public void push(java.lang.Object obj)
obj - Objectpublic java.lang.Object top()
public boolean isEmpty()
public boolean isFull()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||