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 void
add(int index, Dispatcher element)
boolean
add(Dispatcher dispatcher)
boolean
addAll(int index, Collection<? extends Dispatcher> eventTable)
boolean
addAll(Collection<? extends Dispatcher> eventTable)
Dispatcher
set(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:
add
in interfaceCollection<Dispatcher>
- Specified by:
add
in interfaceList<Dispatcher>
- Overrides:
add
in classArrayList<Dispatcher>
-
add
public void add(int index, Dispatcher element)
- Specified by:
add
in interfaceList<Dispatcher>
- Overrides:
add
in classArrayList<Dispatcher>
-
addAll
public boolean addAll(Collection<? extends Dispatcher> eventTable)
- Specified by:
addAll
in interfaceCollection<Dispatcher>
- Specified by:
addAll
in interfaceList<Dispatcher>
- Overrides:
addAll
in classArrayList<Dispatcher>
-
addAll
public boolean addAll(int index, Collection<? extends Dispatcher> eventTable)
- Specified by:
addAll
in interfaceList<Dispatcher>
- Overrides:
addAll
in classArrayList<Dispatcher>
-
set
public Dispatcher set(int index, Dispatcher element)
- Specified by:
set
in interfaceList<Dispatcher>
- Overrides:
set
in classArrayList<Dispatcher>
-
-