|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNode
public class Node
Constructor Summary | |
---|---|
Node(java.lang.String data,
Node next)
Creates a node with the given data, and the given next node. |
Method Summary | |
---|---|
java.lang.String |
getData()
Gets the data stored in the node. |
Node |
getNext()
Gets the next node. |
void |
setNext(Node next)
Sets the next node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Node(java.lang.String data, Node next)
data
- Data to be stored in the node.Method Detail |
---|
public void setNext(Node next)
next
- New next node.public Node getNext()
public java.lang.String getData()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |