public class ArrayMaxEventCollectionRO extends Object implements Collection<EventBean>
Constructor and Description |
---|
ArrayMaxEventCollectionRO(EventBean[] events,
int maxNumEvents)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(EventBean eventBean) |
boolean |
addAll(Collection<? extends EventBean> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<EventBean> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public ArrayMaxEventCollectionRO(EventBean[] events, int maxNumEvents)
events
- to iteratemaxNumEvents
- max to iteratepublic boolean isEmpty()
isEmpty
in interface Collection<EventBean>
public int size()
size
in interface Collection<EventBean>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<EventBean>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<EventBean>
public Object[] toArray()
toArray
in interface Collection<EventBean>
public boolean contains(Object o)
contains
in interface Collection<EventBean>
public void clear()
clear
in interface Collection<EventBean>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<EventBean>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<EventBean>
public boolean addAll(Collection<? extends EventBean> c)
addAll
in interface Collection<EventBean>
public boolean remove(Object o)
remove
in interface Collection<EventBean>
public boolean add(EventBean eventBean)
add
in interface Collection<EventBean>