protected class Queue.QueueNode
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
m_Contents
The nodes contents
|
protected Queue.QueueNode |
m_Next
The next node in the queue
|
Constructor and Description |
---|
QueueNode(java.lang.Object contents)
Creates a queue node with the given contents
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
contents()
Returns the contents in the node.
|
java.lang.Object |
contents(java.lang.Object contents)
Sets the contents of the node.
|
Queue.QueueNode |
next()
Gets the next node in the queue.
|
Queue.QueueNode |
next(Queue.QueueNode next)
Sets the next node in the queue, and returns it.
|
protected Queue.QueueNode m_Next
protected java.lang.Object m_Contents
public QueueNode(java.lang.Object contents)
contents
- given contents.public Queue.QueueNode next(Queue.QueueNode next)
next
- node to set as next.public Queue.QueueNode next()
public java.lang.Object contents(java.lang.Object contents)
contents
- the contents to set.public java.lang.Object contents()