|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLinkedListNode<I>
public class LinkedListNode<I>
Constructor Summary | |
---|---|
LinkedListNode(I data)
Constructor LinkedListNode class. |
|
LinkedListNode(I data,
LinkedListNode<I> next)
Constructor that for the Node class |
Method Summary | |
---|---|
I |
getData()
Getter method to obtain a reference to the Object held by the LinkedListNode. |
LinkedListNode<I> |
getNext()
Getter method to obtain a reference to the next LinkedListNode in the Linked List. |
void |
setData(I data)
Setter method to set the reference to the Object held by the LinkedListNode. |
void |
setNext(LinkedListNode<I> next)
Setter method to set the reference to the next LinkedListNode in the Linked List. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkedListNode(I data)
null
.
data
- This is the data Object held by the LinkedListNode.public LinkedListNode(I data, LinkedListNode<I> next)
data
- This is the data Object held by the Node.next
- This is the pointer to the next LinkedListNode in the Linked List.Method Detail |
---|
public I getData()
public void setData(I data)
data
- The reference to the Object to be held by the LinkedListNode.public LinkedListNode<I> getNext()
public void setNext(LinkedListNode<I> next)
next
- The reference to the next LinkedListNode in the Linked List.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |