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:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<Dispatcher>,java.util.Collection<Dispatcher>,java.util.List<Dispatcher>,java.util.RandomAccess
- Enclosing class:
- EventManager
public static final class EventManager.EventTable extends java.util.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, java.util.Collection<? extends Dispatcher> eventTable)booleanaddAll(java.util.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
-
-
-
-
Method Detail
-
add
public boolean add(Dispatcher dispatcher)
- Specified by:
addin interfacejava.util.Collection<Dispatcher>- Specified by:
addin interfacejava.util.List<Dispatcher>- Overrides:
addin classjava.util.ArrayList<Dispatcher>
-
add
public void add(int index, Dispatcher element)- Specified by:
addin interfacejava.util.List<Dispatcher>- Overrides:
addin classjava.util.ArrayList<Dispatcher>
-
addAll
public boolean addAll(java.util.Collection<? extends Dispatcher> eventTable)
- Specified by:
addAllin interfacejava.util.Collection<Dispatcher>- Specified by:
addAllin interfacejava.util.List<Dispatcher>- Overrides:
addAllin classjava.util.ArrayList<Dispatcher>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends Dispatcher> eventTable)- Specified by:
addAllin interfacejava.util.List<Dispatcher>- Overrides:
addAllin classjava.util.ArrayList<Dispatcher>
-
set
public Dispatcher set(int index, Dispatcher element)
- Specified by:
setin interfacejava.util.List<Dispatcher>- Overrides:
setin classjava.util.ArrayList<Dispatcher>
-
-