public final class MessageManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addMessage(Message msg)
Add a message to the list of known messages.
|
void |
checkUnique()
Verify that the list of known messages contains no two objects
with the same numeric message id.
|
static MessageManager |
getInstance()
Return the singleton instance of this class.
|
java.util.Collection |
getMessages()
Return the complete set of registered messages.
|
public static MessageManager getInstance()
public void addMessage(Message msg)
public void checkUnique()
java.lang.IllegalArgumentException
- if any duplicate id is found.public java.util.Collection getMessages()
Copyright © 2003-2012 Lars K??hne. All Rights Reserved.