|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.hawaii.ics.yucheng.LinkedListQueue.Node<T>
private static class LinkedListQueue.Node<T>
A node class for the generic queue.
| Field Summary | |
|---|---|
private LinkedListQueue.Node<T> |
myNext
A pointer to the next node. |
T |
value
The value stored in the node. |
| Constructor Summary | |
|---|---|
LinkedListQueue.Node(T value)
Initializes a new instance of the class. |
|
LinkedListQueue.Node(T value,
LinkedListQueue.Node<T> next)
Initializes a new instance of the class. |
|
| Method Summary | |
|---|---|
LinkedListQueue.Node<T> |
next()
Returns a pointer to the next node. |
void |
setNext(LinkedListQueue.Node<T> next)
Sets the pointer to the next node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private LinkedListQueue.Node<T> myNext
public final T value
| Constructor Detail |
|---|
public LinkedListQueue.Node(T value)
value - The value stored in the node.
public LinkedListQueue.Node(T value,
LinkedListQueue.Node<T> next)
value - The value stored in the node.next - A pointer to the next node.| Method Detail |
|---|
public LinkedListQueue.Node<T> next()
public void setNext(LinkedListQueue.Node<T> next)
next - A pointer to the next node.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||