|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectlinkedLists.IntNode
public class IntNode
Node of a singly linked list of integers
| Constructor Summary | |
|---|---|
IntNode()
default constructor |
|
IntNode(int i,
IntNode n)
Creates a node with the given element and next node |
|
| Method Summary | |
|---|---|
int |
getElement()
Returns the element of this node |
IntNode |
getNext()
Returns the next node of this node. |
void |
setElement(java.lang.Integer i)
Sets the element of this node |
void |
setNext(IntNode 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 IntNode()
public IntNode(int i,
IntNode n)
| Method Detail |
|---|
public int getElement()
public IntNode getNext()
public void setElement(java.lang.Integer i)
public void setNext(IntNode n)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||