public class DefaultJohnsonEventContainer extends Object implements JohnsonEventContainer
JohnsonEventContainer which stores events in a list.
Note: This implementation is thread-safe.| Constructor and Description |
|---|
DefaultJohnsonEventContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(Event event)
Adds the provided
Event to the list. |
List<Event> |
getEvents()
Retrieves an unmodifiable view of the current
Event list. |
boolean |
hasEvents()
Retrieves a flag indicating whether there are any
Events in the list. |
void |
removeEvent(Event event)
Removes the provided
Event from the list, if it can be found. |
public void addEvent(@Nonnull Event event)
Event to the list.addEvent in interface JohnsonEventContainerevent - the event to add@Nonnull public List<Event> getEvents()
Event list.getEvents in interface JohnsonEventContainerpublic boolean hasEvents()
Events in the list.hasEvents in interface JohnsonEventContainertrue if the event list is not empty; otherwise, falsepublic void removeEvent(@Nonnull Event event)
Event from the list, if it can be found.removeEvent in interface JohnsonEventContainerevent - the event to removeCopyright © 2014 Atlassian. All rights reserved.