org.eclipse.emf.ecore.resource.impl
Class ResourceSetImpl.ResourcesEList
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--org.eclipse.emf.common.util.BasicEList
|
+--org.eclipse.emf.common.notify.impl.NotifyingListImpl
|
+--org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.ResourcesEList
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, EList, InternalEList, java.util.List, NotifyingList, java.io.Serializable
- Enclosing class:
- ResourceSetImpl
- protected class ResourceSetImpl.ResourcesEList
- extends NotifyingListImpl
- implements InternalEList
A notifying list implementation for supporting ResourceSet.getResources()
.
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl |
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, canContainNull, clear, createNotification, dispatchNotification, getFeature, getFeatureID, move, remove, removeAll, setUnique |
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.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 |
ResourceSetImpl.ResourcesEList
protected ResourceSetImpl.ResourcesEList()
isNotificationRequired
protected boolean isNotificationRequired()
- Description copied from class:
NotifyingListImpl
- Returns
false
.
- Overrides:
isNotificationRequired
in class NotifyingListImpl
- Following copied from class:
org.eclipse.emf.common.notify.impl.NotifyingListImpl
- Returns:
false
.
newData
protected java.lang.Object[] newData(int capacity)
- Description copied from class:
BasicEList
- Returns new allocated data storage.
Clients may override this to create typed storage.
The cost of type checking via a typed array is negligable.
- Overrides:
newData
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- new data storage.
getNotifier
public java.lang.Object getNotifier()
- Description copied from class:
NotifyingListImpl
- Returns
null
.
- Overrides:
getNotifier
in class NotifyingListImpl
- Following copied from class:
org.eclipse.emf.common.notify.impl.NotifyingListImpl
- Returns:
null
.
getFeatureID
public int getFeatureID()
- Description copied from class:
NotifyingListImpl
- Returns
Notification.NO_FEATURE_ID
.
- Overrides:
getFeatureID
in class NotifyingListImpl
- Following copied from class:
org.eclipse.emf.common.notify.impl.NotifyingListImpl
- Returns:
Notification.NO_FEATURE_ID
.
useEquals
protected boolean useEquals()
- Description copied from class:
BasicEList
- Returns whether
equals
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.
- Overrides:
useEquals
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- whether
equals
rather than ==
should be used.
hasInverse
protected boolean hasInverse()
- Description copied from class:
NotifyingListImpl
- Returns
false
.
- Overrides:
hasInverse
in class NotifyingListImpl
- Following copied from class:
org.eclipse.emf.common.notify.impl.NotifyingListImpl
- Returns:
false
.
isUnique
protected boolean isUnique()
- Description copied from class:
BasicEList
- Returns whether objects are constrained to appear at most once in the list.
The default is to return
false
, but clients can override this to ensure uniqueness of contents.
The performance impact is signifcant: operations such as add
are O(n) as a result requiring uniqueness.
- Overrides:
isUnique
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- whether objects are constrained to appear at most once in the list.
inverseAdd
protected NotificationChain inverseAdd(java.lang.Object object,
NotificationChain notifications)
- Description copied from class:
NotifyingListImpl
- Does nothing and returns the
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
- Overrides:
inverseAdd
in class NotifyingListImpl
- Following copied from class:
org.eclipse.emf.common.notify.impl.NotifyingListImpl
- Parameters:
object
- the object that's been added to the list.notifications
- the chain of accumulating notifications.- Returns:
- the
notifications
.
inverseRemove
protected NotificationChain inverseRemove(java.lang.Object object,
NotificationChain notifications)
- Description copied from class:
NotifyingListImpl
- Does nothing and returns the
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
- Overrides:
inverseRemove
in class NotifyingListImpl
- Following copied from class:
org.eclipse.emf.common.notify.impl.NotifyingListImpl
- Parameters:
object
- the object that's been remove from the list.notifications
- the chain of accumulating notifications.- Returns:
- the
notifications
.
basicIterator
public java.util.Iterator basicIterator()
- Description copied from interface:
InternalEList
- Returns an iterator that yields unresolved values.
- Specified by:
basicIterator
in interface InternalEList
- Overrides:
basicIterator
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- a read-only iterator that does not resolve objects.
basicListIterator
public java.util.ListIterator basicListIterator()
- Description copied from interface:
InternalEList
- Returns a list iterator that yields unresolved values.
- Specified by:
basicListIterator
in interface InternalEList
- Overrides:
basicListIterator
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- a read-only list iterator that does not resolve objects.
basicListIterator
public java.util.ListIterator basicListIterator(int index)
- Description copied from interface:
InternalEList
- Returns a list iterator that yields unresolved values.
- Specified by:
basicListIterator
in interface InternalEList
- Overrides:
basicListIterator
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Parameters:
index
- the starting index.- Returns:
- a read-only list iterator advanced to the index.
- Throws:
java.lang.IndexOutOfBoundsException
- if the index isn't within the size range.
basicList
public java.util.List basicList()
- Description copied from interface:
InternalEList
- Returns an unmodifiable list that yields unresolved values.
- Specified by:
basicList
in interface InternalEList
- Overrides:
basicList
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- an unsafe list that provides a non-resolving view of the underlying data storage.