Package com.atlassian.bamboo.utils
Interface MessageCollection
-
- All Superinterfaces:
Iterable<String>
,Serializable
- All Known Implementing Classes:
MessageCollectionImpl
@ExperimentalApi public interface MessageCollection extends Serializable, Iterable<String>
General collection to store messages.- Since:
- 5.10
-
-
Method Summary
All Methods Instance Methods Abstract 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()
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
addMessages
void addMessages(@NotNull @NotNull MessageCollection messages)
Add messages in bulk.- Parameters:
messages
- to be added
-
addMessage
void addMessage(@NotNull @NotNull String message)
Add message.- Parameters:
message
- to be added
-
getMessages
@NotNull @NotNull Collection<String> getMessages()
- Returns:
- messages
-
-