com.espertech.esper.collection
Class ArrayMaxEventCollectionRO

java.lang.Object
  extended by com.espertech.esper.collection.ArrayMaxEventCollectionRO
All Implemented Interfaces:
java.lang.Iterable<EventBean>, java.util.Collection<EventBean>

public class ArrayMaxEventCollectionRO
extends java.lang.Object
implements java.util.Collection<EventBean>

Iterator for iterating over an array of events up to a given max number of events.


Constructor Summary
ArrayMaxEventCollectionRO(EventBean[] events, int maxNumEvents)
          Ctor.
 
Method Summary
 boolean add(EventBean eventBean)
           
 boolean addAll(java.util.Collection<? extends EventBean> c)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
 boolean isEmpty()
           
 java.util.Iterator<EventBean> iterator()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean retainAll(java.util.Collection<?> c)
           
 int size()
           
 java.lang.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
 

Constructor Detail

ArrayMaxEventCollectionRO

public ArrayMaxEventCollectionRO(EventBean[] events,
                                 int maxNumEvents)
Ctor.

Parameters:
events - to iterate
maxNumEvents - max to iterate
Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<EventBean>

size

public int size()
Specified by:
size in interface java.util.Collection<EventBean>

iterator

public java.util.Iterator<EventBean> iterator()
Specified by:
iterator in interface java.lang.Iterable<EventBean>
Specified by:
iterator in interface java.util.Collection<EventBean>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<EventBean>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface java.util.Collection<EventBean>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<EventBean>

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<EventBean>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<EventBean>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<EventBean>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<EventBean>

addAll

public boolean addAll(java.util.Collection<? extends EventBean> c)
Specified by:
addAll in interface java.util.Collection<EventBean>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<EventBean>

add

public boolean add(EventBean eventBean)
Specified by:
add in interface java.util.Collection<EventBean>

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com