|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.collection.OneEventCollection
public class OneEventCollection
Simple collection that exposes a limited add-and-get interface and that is optimized towards holding a single event, but can hold multiple events. If more then one event is added, the class allocates a linked list for additional events.
Constructor Summary | |
---|---|
OneEventCollection()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OneEventCollection()
Method Detail |
---|
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()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |