|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNode<E>
public class Node<E>
This class represents a node to be used in a Queue
Constructor Summary | |
---|---|
Node(E data)
Constructor that for the Node class |
|
Node(E data,
Node<E> next)
Constructor that for the Node class |
Method Summary | |
---|---|
E |
getData()
Getter method to obtain a reference to the Object held by the LinkedListNode. |
Node<E> |
getNext()
Getter method to obtain a reference to the next LinkedListNode in the Linked List. |
void |
setData(E data)
Setter method to set the reference to the Object held by the LinkedListNode. |
void |
setNext(Node<E> 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 Node(E data)
data
- This is the data Object held by the LinkedListNode.public Node(E data, Node<E> 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 E getData()
public void setData(E data)
data
- The reference to the Object to be held by the LinkedListNode.public Node<E> getNext()
public void setNext(Node<E> 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 |