public class DefaultMessageCollection extends Object implements MessageCollection
Constructor and Description |
---|
DefaultMessageCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addAll(List<Message> remoteMessages)
Adds all messages to the collection
|
void |
addMessage(Message message)
Adds a message to the collection
|
void |
addMessage(String key,
Serializable... arguments)
Adds a message to the collection
|
List<Message> |
getMessages() |
boolean |
isEmpty() |
String |
toString() |
public void addMessage(String key, Serializable... arguments)
MessageCollection
addMessage
in interface MessageCollection
key
- The i18n keyarguments
- The arguments to insert into the resolved messagepublic void addMessage(Message message)
MessageCollection
addMessage
in interface MessageCollection
message
- the messagepublic boolean isEmpty()
isEmpty
in interface MessageCollection
public List<Message> getMessages()
getMessages
in interface MessageCollection
public void addAll(List<Message> remoteMessages)
MessageCollection
addAll
in interface MessageCollection
remoteMessages
- The list of messagesCopyright © 2015 Atlassian. All rights reserved.