|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.emf.common.util.BasicEList<E>
org.eclipse.emf.common.notify.impl.NotifyingListImpl<E>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.ResourcesEList<E>
protected class ResourceSetImpl.ResourcesEList<E extends java.lang.Object & Resource>
A notifying list implementation for supporting ResourceSet.getResources().
| 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> |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.util.InternalEList |
|---|
InternalEList.Unsettable<E> |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.common.util.BasicEList |
|---|
data, size |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
protected |
ResourceSetImpl.ResourcesEList()
|
| Method Summary | |
|---|---|
java.util.Iterator<E> |
basicIterator()
Returns a read-only iterator that does not resolve objects. |
java.util.List<E> |
basicList()
Returns an unsafe list that provides a non-resolving view of the underlying data storage. |
java.util.ListIterator<E> |
basicListIterator()
Returns a read-only list iterator that does not resolve objects. |
java.util.ListIterator<E> |
basicListIterator(int index)
Returns a read-only list iterator advanced to the given index that does not resolve objects. |
int |
getFeatureID()
Returns Notification.NO_FEATURE_ID. |
java.lang.Object |
getNotifier()
Returns null. |
protected boolean |
hasInverse()
Returns false. |
protected NotificationChain |
inverseAdd(E object,
NotificationChain notifications)
Does nothing and returns the notifications. |
protected NotificationChain |
inverseRemove(E object,
NotificationChain notifications)
Does nothing and returns the notifications. |
protected boolean |
isNotificationRequired()
Returns false. |
protected boolean |
isUnique()
Returns whether objects are constrained to appear at most once in the list. |
protected java.lang.Object[] |
newData(int capacity)
Returns new allocated data storage. |
protected boolean |
useEquals()
Returns whether equals rather than == should be used to compare members. |
| Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl |
|---|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, canContainNull, clear, createNotification, createNotification, createNotificationChain, dispatchNotification, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddUnique, doAddUnique, doClear, doMove, doRemove, doRemoveAll, doSetUnique, getFeature, getFeatureID, hasShadow, isSet, move, remove, removeAll, resolve, setUnique, shadowAdd, shadowRemove, shadowSet |
| Methods inherited from class org.eclipse.emf.common.util.BasicEList |
|---|
add, add, addAll, addAll, assign, basicGet, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, move, remove, resolve, retainAll, set, setData, shrink, size, toArray, toArray, toString, 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 org.eclipse.emf.ecore.util.InternalEList |
|---|
addUnique, addUnique, basicAdd, basicGet, basicRemove, setUnique |
| Methods inherited from interface org.eclipse.emf.common.util.EList |
|---|
move, move |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Constructor Detail |
|---|
protected ResourceSetImpl.ResourcesEList()
| Method Detail |
|---|
protected boolean isNotificationRequired()
NotifyingListImplfalse.
isNotificationRequired in class NotifyingListImpl<E extends java.lang.Object & Resource>false.protected java.lang.Object[] newData(int capacity)
BasicEList
newData in class BasicEList<E extends java.lang.Object & Resource>public java.lang.Object getNotifier()
NotifyingListImplnull.
getNotifier in interface NotifyingList<E extends java.lang.Object & Resource>getNotifier in class NotifyingListImpl<E extends java.lang.Object & Resource>null.public int getFeatureID()
NotifyingListImplNotification.NO_FEATURE_ID.
getFeatureID in interface NotifyingList<E extends java.lang.Object & Resource>getFeatureID in class NotifyingListImpl<E extends java.lang.Object & Resource>Notification.NO_FEATURE_ID.Notification.getFeatureID(java.lang.Class>)protected boolean useEquals()
BasicEListequals rather than == should be used to compare members.
The default is to return true but clients can optimize performance by returning false.
The performance difference is highly significant.
useEquals in class BasicEList<E extends java.lang.Object & Resource>equals rather than == should be used.protected boolean hasInverse()
NotifyingListImplfalse.
hasInverse in class NotifyingListImpl<E extends java.lang.Object & Resource>false.protected boolean isUnique()
BasicEListfalse, but clients can override this to ensure uniqueness of contents.
The performance impact is significant: operations such as add are O(n) as a result requiring uniqueness.
isUnique in class BasicEList<E extends java.lang.Object & Resource>
protected NotificationChain inverseAdd(E object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
inverseAdd in class NotifyingListImpl<E extends java.lang.Object & Resource>object - the object that's been added to the list.notifications - the chain of accumulating notifications.
notifications.
protected NotificationChain inverseRemove(E object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
inverseRemove in class NotifyingListImpl<E extends java.lang.Object & Resource>object - the object that's been remove from the list.notifications - the chain of accumulating notifications.
notifications.public java.util.Iterator<E> basicIterator()
BasicEListresolve objects.
This implementation allocates a BasicEList.NonResolvingEIterator.
basicIterator in interface InternalEList<E extends java.lang.Object & Resource>basicIterator in class BasicEList<E extends java.lang.Object & Resource>public java.util.ListIterator<E> basicListIterator()
BasicEListresolve objects.
This implementation allocates a BasicEList.NonResolvingEListIterator.
basicListIterator in interface InternalEList<E extends java.lang.Object & Resource>basicListIterator in class BasicEList<E extends java.lang.Object & Resource>public java.util.ListIterator<E> basicListIterator(int index)
BasicEListresolve objects.
This implementation allocates a BasicEList.NonResolvingEListIterator.
basicListIterator in interface InternalEList<E extends java.lang.Object & Resource>basicListIterator in class BasicEList<E extends java.lang.Object & Resource>index - the starting index.
public java.util.List<E> basicList()
BasicEListnon-resolving view of the underlying data storage.
basicList in interface InternalEList<E extends java.lang.Object & Resource>basicList in class BasicEList<E extends java.lang.Object & Resource>
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||