org.eclipse.emf.common.notify.impl
Class NotificationChainImpl
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--org.eclipse.emf.common.util.BasicEList
|
+--org.eclipse.emf.common.notify.impl.NotificationChainImpl
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, EList, java.util.List, NotificationChain, java.io.Serializable
- public class NotificationChainImpl
- extends BasicEList
- implements NotificationChain
A list that acts as a notification chain.
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
add, addAll, addAll, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicIterator, basicList, basicListIterator, basicListIterator, canContainNull, clear, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, indexOf, isEmpty, isUnique, iterator, lastIndexOf, listIterator, listIterator, move, move, remove, remove, removeAll, resolve, retainAll, set, setData, setUnique, shrink, size, toArray, toArray, toString, useEquals, validate |
Methods inherited from class java.util.AbstractList |
removeRange, subList |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
subList |
NotificationChainImpl
public NotificationChainImpl()
- Creates an empty instance.
NotificationChainImpl
public NotificationChainImpl(int initialCapacity)
- Creates an empty instance with a given capacity.
param initialCapacity the initial capacity of the list before it must grow.
newData
protected java.lang.Object[] newData(int capacity)
- Returns new data storage of type
Notification
[].
- Overrides:
newData
in class BasicEList
- Returns:
- new data storage.
add
public boolean add(Notification newNotification)
- Adds or merges a new notification.
- Specified by:
add
in interface NotificationChain
- Parameters:
newNotification
- a notification.- Returns:
true
when the notification is added and false
when it is merged.
add
public boolean add(java.lang.Object object)
- Returns the result of calling
add(Notification)
.
- Overrides:
add
in class BasicEList
- Parameters:
object
- the notification to add.- Returns:
- the result of calling
add(Notification)
.
dispatch
public void dispatch()
- Description copied from interface:
NotificationChain
- Dispatches each notification to the appropriate notifier via
Notifier.eNotify
.
- Specified by:
dispatch
in interface NotificationChain
dispatch
protected void dispatch(Notification notification)
- Dispatches the notification to it's notifier.