|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatastructures.Stack
public class Stack
My stack implementation.
Constructor Summary | |
---|---|
Stack(int m_size)
|
Method Summary | |
---|---|
boolean |
is_empty()
Returns true if stack empty. |
Node |
pop()
Retrieves a node from stack. |
void |
push(Node n)
Pushes node to stack. |
int |
size()
Returns number of elements in stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Stack(int m_size)
Method Detail |
---|
public boolean is_empty()
public void push(Node n)
n
- nodepublic Node pop()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |