org.jdesktop.wonderland.common.messages
Class MessageList

java.lang.Object
  extended by org.jdesktop.wonderland.common.messages.Message
      extended by org.jdesktop.wonderland.common.messages.MessageList
All Implemented Interfaces:
java.io.Serializable

public class MessageList
extends Message

An aggregation of individual messages into a message list

Author:
paulby
See Also:
Serialized Form

Constructor Summary
MessageList()
           
 
Method Summary
 void addMessage(Message message)
          Add a message to the list of aggregated messages
 java.util.List<Message> getMessages()
          Get the aggregated set of messages.
 int size()
          Return the number of messages in the list
 
Methods inherited from class org.jdesktop.wonderland.common.messages.Message
getMessageID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageList

public MessageList()
Method Detail

addMessage

public void addMessage(Message message)
Add a message to the list of aggregated messages

Parameters:
message -

getMessages

public java.util.List<Message> getMessages()
Get the aggregated set of messages. Returns the underlying list, so users should take care if they modify the list

Returns:

size

public int size()
Return the number of messages in the list

Returns:


Open Wonderland - http://openwonderland.org