|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object MsgQueue.MsgListNode
protected class MsgQueue.MsgListNode
Subclass to implement linked list of messages. Consider replacing later with something from Java libraries
Constructor Summary | |
---|---|
MsgQueue.MsgListNode()
Constructor: This variant creates an empty list |
|
MsgQueue.MsgListNode(IMsg msg,
MsgQueue.MsgListNode next)
Constructor: Preferred version |
|
MsgQueue.MsgListNode(MsgQueue.MsgListNode listToClone)
Clone list Constructor |
Method Summary | |
---|---|
MsgQueue.MsgListNode |
append(IMsg msg)
Simple append function |
MsgQueue.MsgListNode |
findTail()
Finds the tail of a list |
IMsg |
getData()
Accessor method for list element data |
MsgQueue.MsgListNode |
getNext()
Accessor method for list next element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MsgQueue.MsgListNode()
Constructor: This variant creates an empty list
public MsgQueue.MsgListNode(IMsg msg, MsgQueue.MsgListNode next)
Constructor: Preferred version
msg
- Message for this list node.next
- List to follow this node (may be null)public MsgQueue.MsgListNode(MsgQueue.MsgListNode listToClone)
Clone list Constructor
listToClone
- list to make a copy ofMethod Detail |
---|
public MsgQueue.MsgListNode findTail()
Finds the tail of a list
public MsgQueue.MsgListNode append(IMsg msg)
Simple append function
msg
- Message to be appended
public IMsg getData()
Accessor method for list element data
public MsgQueue.MsgListNode getNext()
Accessor method for list next element.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |