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 void
add(int index, Dispatcher element)
boolean
add(Dispatcher dispatcher)
boolean
addAll(int index, java.util.Collection<? extends Dispatcher> eventTable)
boolean
addAll(java.util.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
-
-
-
-
Method Detail
-
add
public boolean add(Dispatcher dispatcher)
- Specified by:
add
in interfacejava.util.Collection<Dispatcher>
- Specified by:
add
in interfacejava.util.List<Dispatcher>
- Overrides:
add
in classjava.util.ArrayList<Dispatcher>
-
add
public void add(int index, Dispatcher element)
- Specified by:
add
in interfacejava.util.List<Dispatcher>
- Overrides:
add
in classjava.util.ArrayList<Dispatcher>
-
addAll
public boolean addAll(java.util.Collection<? extends Dispatcher> eventTable)
- Specified by:
addAll
in interfacejava.util.Collection<Dispatcher>
- Specified by:
addAll
in interfacejava.util.List<Dispatcher>
- Overrides:
addAll
in classjava.util.ArrayList<Dispatcher>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends Dispatcher> eventTable)
- Specified by:
addAll
in interfacejava.util.List<Dispatcher>
- Overrides:
addAll
in classjava.util.ArrayList<Dispatcher>
-
set
public Dispatcher set(int index, Dispatcher element)
- Specified by:
set
in interfacejava.util.List<Dispatcher>
- Overrides:
set
in classjava.util.ArrayList<Dispatcher>
-
-