Package com.atlassian.bamboo.utils
Class MessageCollectionImpl
- java.lang.Object
-
- com.atlassian.bamboo.utils.MessageCollectionImpl
-
- All Implemented Interfaces:
MessageCollection
,Serializable
,Iterable<String>
public class MessageCollectionImpl extends Object implements MessageCollection
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageCollectionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMessage(@NotNull String message)
Add message.void
addMessages(@NotNull MessageCollection messages)
Add messages in bulk.@NotNull Collection<String>
getMessages()
Iterator<String>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addMessages
public void addMessages(@NotNull @NotNull MessageCollection messages)
Description copied from interface:MessageCollection
Add messages in bulk.- Specified by:
addMessages
in interfaceMessageCollection
- Parameters:
messages
- to be added
-
addMessage
public void addMessage(@NotNull @NotNull String message)
Description copied from interface:MessageCollection
Add message.- Specified by:
addMessage
in interfaceMessageCollection
- Parameters:
message
- to be added
-
getMessages
@NotNull public @NotNull Collection<String> getMessages()
- Specified by:
getMessages
in interfaceMessageCollection
- Returns:
- messages
-
-