Package org.apache.openjpa.event
Class LifecycleEventManager.ListenerList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Object>
-
- org.apache.openjpa.event.LifecycleEventManager.ListenerList
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Object>,Collection<Object>,List<Object>,RandomAccess
- Enclosing class:
- LifecycleEventManager
public static class LifecycleEventManager.ListenerList extends ArrayList<Object>
Extended list that tracks what event types its elements care about. Maintains set semantics as well.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ListenerList(int size)ListenerList(LifecycleEventManager.ListenerList copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Object listener)booleanhasListeners(int type)booleanremove(Object listener)-
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
ListenerList
public ListenerList(int size)
-
ListenerList
public ListenerList(LifecycleEventManager.ListenerList copy)
-
-
Method Detail
-
hasListeners
public boolean hasListeners(int type)
-
add
public boolean add(Object listener)
-
-