public class EObjectEList<E> extends EcoreEList<E>
Modifier and Type | Class and Description |
---|---|
static class |
EObjectEList.Unsettable<E> |
EcoreEList.Dynamic<E>, EcoreEList.Generic<E>, EcoreEList.UnmodifiableEList<E>
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.FastCompare<E>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1>
Modifier and Type | Field and Description |
---|---|
protected int |
featureID |
dataClass, owner
data, size
Constructor and Description |
---|
EObjectEList(java.lang.Class<?> dataClass,
InternalEObject owner,
int featureID) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canContainNull()
Returns
! |
int |
getFeatureID()
Returns
Notification.NO_FEATURE_ID . |
protected boolean |
hasInverse()
Returns
false . |
protected boolean |
isEObject() |
protected boolean |
isUnique()
Returns whether objects are constrained to appear at most once in the list.
|
protected E |
resolve(int index,
E object)
Resolves the object at the index and returns the result.
|
protected boolean |
useEquals()
Returns whether
equals rather than == should be used to compare members. |
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
basicContains, basicContainsAll, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicToArray, basicToArray
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
assign, basicGet, clone, data, get, grow, isEmpty, primitiveGet, setData, shrink, size
add, add, addAll, addAll, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, iterator, listIterator, listIterator, move, remove, retainAll, set, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicRemove, basicToArray, basicToArray, setUnique
public EObjectEList(java.lang.Class<?> dataClass, InternalEObject owner, int featureID)
public int getFeatureID()
NotifyingListImpl
Notification.NO_FEATURE_ID
.getFeatureID
in interface NotifyingList<E>
getFeatureID
in class EcoreEList<E>
Notification.NO_FEATURE_ID
.Notification.getFeatureID(java.lang.Class<?>)
protected boolean useEquals()
AbstractEList
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.useEquals
in class AbstractEList<E>
equals
rather than ==
should be used.protected boolean isUnique()
AbstractEList
false
, 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 AbstractEList<E>
protected boolean hasInverse()
NotifyingListImpl
false
.hasInverse
in class NotifyingListImpl<E>
false
.protected boolean isEObject()
isEObject
in class EcoreEList<E>
protected boolean canContainNull()
NotifyingListImpl
!NotifyingListImpl.hasInverse()
.canContainNull
in class NotifyingListImpl<E>
!hasInverse
.protected E resolve(int index, E object)
AbstractEList
object
;
clients can use this to transform objects as they are fetched.resolve
in class EcoreEList<E>
index
- the position of the content.object
- the content.