public class OneEventCollection
extends java.lang.Object
Constructor and Description |
---|
OneEventCollection() |
Modifier and Type | Method and Description |
---|---|
void |
add(EventBean theEvent)
Add an event to the collection.
|
void |
add(EventBean[] events) |
java.util.ArrayDeque<EventBean> |
getAdditionalEvents() |
EventBean |
getFirstEvent() |
boolean |
isEmpty()
Returns true if the collection is empty.
|
EventBean[] |
toArray()
Returns an array holding the collected events.
|
public void add(EventBean theEvent)
theEvent
- is the event to addpublic boolean isEmpty()
public EventBean[] toArray()
public void add(EventBean[] events)
public EventBean getFirstEvent()
public java.util.ArrayDeque<EventBean> getAdditionalEvents()