Package com.adobe.xfa
Class EventManager.EventTable
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Dispatcher>
-
- com.adobe.xfa.EventManager.EventTable
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Dispatcher>,Collection<Dispatcher>,List<Dispatcher>,RandomAccess
- Enclosing class:
- EventManager
public static final class EventManager.EventTable extends ArrayList<Dispatcher>
Represents a collection of Dispatchers associated with a particular Obj. In the C++ implementation, the SortedArray used a Integer keys and Object (Dispatcher) values in a sort of Map structure. Since we know that we only contain Dispatcher instances and that a Dispatcher contains its own event id, we can simplify this to an ArrayList. Typically, we expect this list to be very short - perhaps only a single item.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Dispatcher element)booleanadd(Dispatcher dispatcher)booleanaddAll(int index, Collection<? extends Dispatcher> eventTable)booleanaddAll(Collection<? extends Dispatcher> eventTable)Dispatcherset(int index, Dispatcher element)-
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
add
public boolean add(Dispatcher dispatcher)
- Specified by:
addin interfaceCollection<Dispatcher>- Specified by:
addin interfaceList<Dispatcher>- Overrides:
addin classArrayList<Dispatcher>
-
add
public void add(int index, Dispatcher element)- Specified by:
addin interfaceList<Dispatcher>- Overrides:
addin classArrayList<Dispatcher>
-
addAll
public boolean addAll(Collection<? extends Dispatcher> eventTable)
- Specified by:
addAllin interfaceCollection<Dispatcher>- Specified by:
addAllin interfaceList<Dispatcher>- Overrides:
addAllin classArrayList<Dispatcher>
-
addAll
public boolean addAll(int index, Collection<? extends Dispatcher> eventTable)- Specified by:
addAllin interfaceList<Dispatcher>- Overrides:
addAllin classArrayList<Dispatcher>
-
set
public Dispatcher set(int index, Dispatcher element)
- Specified by:
setin interfaceList<Dispatcher>- Overrides:
setin classArrayList<Dispatcher>
-
-