|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectlinkedLists.Node
public class Node
Node of a singly linked list of strings
| Constructor Summary | |
|---|---|
Node()
default constructor |
|
Node(java.lang.String s,
Node n)
Creates a node with the given element and next node |
|
| Method Summary | |
|---|---|
java.lang.String |
getElement()
Returns the element of this node |
Node |
getNext()
Returns the next node of this node. |
void |
setElement(java.lang.String s)
Sets the element of this node |
void |
setNext(Node n)
Sets the next field of this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Node()
public Node(java.lang.String s,
Node n)
| Method Detail |
|---|
public java.lang.String getElement()
public Node getNext()
public void setElement(java.lang.String s)
public void setNext(Node n)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||