org.eclipse.emf.ecore.util
Class EObjectEList
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.util.EcoreEList
org.eclipse.emf.ecore.util.EObjectEList
- All Implemented Interfaces:
- Cloneable, Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, List, NotifyingList, RandomAccess, Serializable
- Direct Known Subclasses:
- EObjectContainmentEList, EObjectEList.Unsettable, EObjectResolvingEList, EObjectWithInverseEList
- public class EObjectEList
- extends EcoreEList
- See Also:
- Serialized Form
Methods inherited from class org.eclipse.emf.ecore.util.EcoreEList |
basicIterator, basicList, basicListIterator, basicListIterator, contains, createNotification, createNotification, dispatchNotification, get, getEObject, getEStructuralFeature, getFeature, getFeatureType, getInverseEReference, getInverseFeatureClass, getInverseFeatureID, getNotifier, hasInstanceClass, hasManyInverse, hasNavigableInverse, hasProxies, indexOf, inverseAdd, inverseRemove, isContainment, isInstance, isNotificationRequired, isSet, lastIndexOf, newData, resolve, resolve, resolveProxy, set, toArray, toArray, unset, validate |
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl |
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, clear, createNotification, createNotificationChain, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddUnique, doAddUnique, doClear, doMove, doRemove, doRemoveAll, doSetUnique, getFeatureID, hasShadow, move, remove, removeAll, setUnique, shadowAdd, shadowRemove, shadowSet |
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
add, add, addAll, addAll, assign, basicGet, clone, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, isEmpty, iterator, listIterator, listIterator, move, remove, retainAll, set, setData, shrink, size, toString |
Methods inherited from interface org.eclipse.emf.common.util.EList |
move, move |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, containsAll, equals, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList |
featureID
protected final int featureID
EObjectEList
public EObjectEList(Class dataClass,
InternalEObject owner,
int featureID)
getFeatureID
public int getFeatureID()
- Description copied from class:
NotifyingListImpl
- Returns
Notification.NO_FEATURE_ID
.
- Specified by:
getFeatureID
in interface NotifyingList
- Overrides:
getFeatureID
in class EcoreEList
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
- Returns:
- whether
equals
rather than ==
should be used.
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
- Returns:
- whether objects are constrained to appear at most once in the list.
hasInverse
protected boolean hasInverse()
- Description copied from class:
NotifyingListImpl
- Returns
false
.
- Overrides:
hasInverse
in class NotifyingListImpl
- Returns:
false
.
isEObject
protected boolean isEObject()
- Overrides:
isEObject
in class EcoreEList
canContainNull
protected boolean canContainNull()
- Description copied from class:
NotifyingListImpl
- Returns
!NotifyingListImpl.hasInverse()
.
- Overrides:
canContainNull
in class NotifyingListImpl
- Returns:
!hasInverse
.
resolve
protected Object resolve(int index,
Object object)
- Description copied from class:
BasicEList
- Resolves the object at the index and returns the result.
This implementation simply returns the
object
;
clients can use this to transform objects as they are fetched.
- Overrides:
resolve
in class EcoreEList