public class MessageListNode
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
private MessageListNode |
next |
the next ListNode after this
|
private Message |
value |
the value of the MessageListNode
|
| Constructor | Description |
|---|---|
MessageListNode(Message msg) |
Constructs a new MessageListNode that does not have a MessageListNode
after it with a value of msg
|
MessageListNode(Message msg,
MessageListNode nxt) |
Constructs a new MessageListNode that does not have a MessageListNode
after it with a value of msg
|
| Modifier and Type | Method | Description |
|---|---|---|
MessageListNode |
getNext() |
Returns the next MessageListNode in the linked list
|
Message |
getValue() |
Returns the value of the MessageListNode
|
void |
setNext(MessageListNode nxt) |
Sets the next linked node to nxt
|
void |
setValue(Message msg) |
Sets the value of the MessageListNode
|
private Message value
private MessageListNode next
public MessageListNode(Message msg)
msg - the value of the MessageListNode being createdpublic MessageListNode(Message msg, MessageListNode nxt)
msg - the value of the MessageListNode being creatednxt - the next MassageListNode in the linked listpublic Message getValue()
public MessageListNode getNext()
public void setValue(Message msg)
msg - a Message to set the MessageLinkedNode value topublic void setNext(MessageListNode nxt)
nxt - a MessageListNode to be the next node in the list