Class NotificationChainImpl
java.lang.Object
java.util.AbstractCollection<Notification>
java.util.AbstractList<Notification>
org.eclipse.emf.common.util.AbstractEList<Notification>
org.eclipse.emf.common.util.BasicEList<Notification>
org.eclipse.emf.common.notify.impl.NotificationChainImpl
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Notification>,Collection<Notification>,List<Notification>,RandomAccess,SequencedCollection<Notification>,NotificationChain,EList<Notification>
A list that acts as a notification chain.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.FastCompare<E>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1>, BasicEList.UnmodifiableEList<E> -
Field Summary
Fields inherited from class org.eclipse.emf.common.util.BasicEList
data, sizeFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty instance.NotificationChainImpl(int initialCapacity) Creates an empty instance with a given capacity. -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(Notification newNotification) Adds or merges a new notification.voiddispatch()Dispatches each notification to the appropriate notifier viaNotifier.eNotify.protected voiddispatch(Notification notification) Dispatches the notification to its notifier.protected Object[]newData(int capacity) Returns new data storage of typeNotification[].Methods inherited from class org.eclipse.emf.common.util.BasicEList
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clear, clone, contains, data, get, grow, indexOf, isEmpty, lastIndexOf, move, primitiveGet, remove, setData, setUnique, shrink, size, toArray, toArrayMethods inherited from class org.eclipse.emf.common.util.AbstractEList
add, addAll, addAll, basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, iterator, listIterator, listIterator, move, remove, removeAll, resolve, retainAll, set, toString, useEquals, validateMethods inherited from class java.util.AbstractList
removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, containsAll, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator, subList
-
Constructor Details
-
NotificationChainImpl
public NotificationChainImpl()Creates an empty instance. -
NotificationChainImpl
public NotificationChainImpl(int initialCapacity) Creates an empty instance with a given capacity.- Parameters:
initialCapacity- the initial capacity of the list before it must grow.
-
-
Method Details
-
newData
Returns new data storage of typeNotification[].- Overrides:
newDatain classBasicEList<Notification>- Returns:
- new data storage.
-
add
Adds or merges a new notification.- Specified by:
addin interfaceCollection<Notification>- Specified by:
addin interfaceList<Notification>- Specified by:
addin interfaceNotificationChain- Overrides:
addin classAbstractEList<Notification>- Parameters:
newNotification- a notification.- Returns:
truewhen the notification is added andfalsewhen it is merged.- See Also:
-
dispatch
public void dispatch()Description copied from interface:NotificationChainDispatches each notification to the appropriate notifier viaNotifier.eNotify.- Specified by:
dispatchin interfaceNotificationChain
-
dispatch
Dispatches the notification to its notifier.
-