|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.sourceforge.combean.graph.containers.StackAsNodeStack
public class StackAsNodeStack
Uses a java.util.Stack to implement a NodeStack.
| Constructor Summary | |
|---|---|
StackAsNodeStack()
constructor |
|
StackAsNodeStack(Stack<Node> stack)
Use a Stack as a NodeStack. |
|
| Method Summary | |
|---|---|
Stack<Node> |
getStack()
|
boolean |
isEmpty()
Check if the collection contains any elements. |
NodeIterator |
iterator()
Return an iterator through all nodes in the collection. |
Node |
peek()
Get the node on top of the stack without removing it. |
Node |
pop()
Get the node on top of the stack and remove it. |
Node |
push(Node v)
Put a node on top of the stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackAsNodeStack()
public StackAsNodeStack(Stack<Node> stack)
stack - the Stack to be wrapped.| Method Detail |
|---|
public Node peek()
NodeStack
peek in interface NodeStackpublic Node pop()
NodeStack
pop in interface NodeStackpublic Node push(Node v)
NodeStack
push in interface NodeStackv - the node to add to the stack
public boolean isEmpty()
FixedNodeCollection
isEmpty in interface FixedNodeCollectionpublic NodeIterator iterator()
FixedNodeCollection
iterator in interface FixedNodeCollectionpublic Stack<Node> getStack()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||