Package | Description |
---|---|
horstmann.ch02_mail |
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Message> |
MessageQueue.queue |
Modifier and Type | Method and Description |
---|---|
Message |
Mailbox.getCurrentMessage()
Get the current message.
|
Message |
MessageQueue.peek()
Get message at head.
|
Message |
MessageQueue.remove()
Remove message at head.
|
Message |
Mailbox.removeCurrentMessage()
Remove the current message from the mailbox.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageQueue.add(Message newMessage)
Append message at tail.
|
void |
Mailbox.addMessage(Message aMessage)
Add a message to the mailbox.
|