Class ArrayMaxEventCollectionRO
java.lang.Object
com.espertech.esper.common.internal.collection.ArrayMaxEventCollectionRO
- All Implemented Interfaces:
Iterable<EventBean>
,Collection<EventBean>
Iterator for iterating over an array of events up to a given max number of events.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends EventBean> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
ArrayMaxEventCollectionRO
Ctor.- Parameters:
events
- to iteratemaxNumEvents
- max to iterate
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<EventBean>
-
size
public int size()- Specified by:
size
in interfaceCollection<EventBean>
-
iterator
-
containsAll
- Specified by:
containsAll
in interfaceCollection<EventBean>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<EventBean>
-
toArray
- Specified by:
toArray
in interfaceCollection<EventBean>
-
contains
- Specified by:
contains
in interfaceCollection<EventBean>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<EventBean>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<EventBean>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<EventBean>
-
addAll
- Specified by:
addAll
in interfaceCollection<EventBean>
-
remove
- Specified by:
remove
in interfaceCollection<EventBean>
-
add
- Specified by:
add
in interfaceCollection<EventBean>
-