Package com.adobe.xfa
Class EventManager.EventTable
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Dispatcher>,Collection<Dispatcher>,List<Dispatcher>,RandomAccess,SequencedCollection<Dispatcher>
- Enclosing class:
EventManager
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, Dispatcher element) booleanadd(Dispatcher dispatcher) booleanaddAll(int index, Collection<? extends Dispatcher> eventTable) booleanaddAll(Collection<? extends Dispatcher> eventTable) set(int index, Dispatcher element) Methods inherited from class java.util.ArrayList
addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
EventTable
public EventTable()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<Dispatcher>- Specified by:
addin interfaceList<Dispatcher>- Overrides:
addin classArrayList<Dispatcher>
-
add
- Specified by:
addin interfaceList<Dispatcher>- Overrides:
addin classArrayList<Dispatcher>
-
addAll
- Specified by:
addAllin interfaceCollection<Dispatcher>- Specified by:
addAllin interfaceList<Dispatcher>- Overrides:
addAllin classArrayList<Dispatcher>
-
addAll
- Specified by:
addAllin interfaceList<Dispatcher>- Overrides:
addAllin classArrayList<Dispatcher>
-
set
- Specified by:
setin interfaceList<Dispatcher>- Overrides:
setin classArrayList<Dispatcher>
-