public static class EcoreEList.UnmodifiableEList<E> extends BasicEList.UnmodifiableEList<E> implements InternalEList.Unsettable<E>, EStructuralFeature.Setting
Modifier and Type | Class and Description |
---|---|
static class |
EcoreEList.UnmodifiableEList.FastCompare<E> |
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1>, BasicEList.UnmodifiableEList<E>
InternalEList.Unsettable<E>
Modifier and Type | Field and Description |
---|---|
protected EStructuralFeature |
eStructuralFeature |
protected InternalEObject |
owner |
data, size
Constructor and Description |
---|
EcoreEList.UnmodifiableEList(InternalEObject owner,
EStructuralFeature eStructuralFeature,
int size,
java.lang.Object[] data) |
Modifier and Type | Method and Description |
---|---|
NotificationChain |
basicAdd(E object,
NotificationChain notifications)
Adds the object without updating the inverse.
|
boolean |
basicContains(java.lang.Object object)
Returns whether the object is contained within the list of unresolved values.
|
boolean |
basicContainsAll(java.util.Collection<?> collection)
Returns whether each object in the collection is contained within the list of unresolved values.
|
int |
basicIndexOf(java.lang.Object object)
Returns the index of the object within the list of unresolved values.
|
java.util.Iterator<E> |
basicIterator()
Returns a read-only iterator that does not
resolve objects. |
int |
basicLastIndexOf(java.lang.Object object)
Returns the last index of the object within the list of unresolved values.
|
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. |
NotificationChain |
basicRemove(java.lang.Object object,
NotificationChain notifications)
Removes the object with without updating the inverse.
|
java.lang.Object[] |
basicToArray()
Returns the array with unresolved values.
|
<T> T[] |
basicToArray(T[] array)
Returns the array with unresolved values.
|
java.lang.Object |
get(boolean resolve)
Returns the value held by the feature of the object;
it optionally
resolves the value. |
EObject |
getEObject()
Returns the object holding a value.
|
EStructuralFeature |
getEStructuralFeature()
Returns the specific feature holding a value for the object.
|
boolean |
isSet()
Returns whether a value is held by the feature of the object.
|
void |
set(java.lang.Object newValue)
Set the value held by the feature of the object.
|
void |
unset()
Unsets the value held by the feature of the object.
|
add, add, addAll, addAll, clear, grow, iterator, listIterator, listIterator, move, move, remove, remove, removeAll, retainAll, set, shrink
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, clone, contains, data, get, indexOf, isEmpty, lastIndexOf, newData, primitiveGet, setData, setUnique, size, toArray, toArray
canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, resolve, toString, useEquals, validate
finalize, getClass, notify, notifyAll, wait, wait, wait
addAllUnique, addAllUnique, addUnique, addUnique, basicGet, setUnique
protected final InternalEObject owner
protected final EStructuralFeature eStructuralFeature
public EcoreEList.UnmodifiableEList(InternalEObject owner, EStructuralFeature eStructuralFeature, int size, java.lang.Object[] data)
public java.util.List<E> basicList()
BasicEList
non-resolving
view of the underlying data storage.basicList
in interface InternalEList<E>
basicList
in class BasicEList<E>
public java.util.Iterator<E> basicIterator()
AbstractEList
resolve
objects.
This implementation allocates a AbstractEList.NonResolvingEIterator
.basicIterator
in interface InternalEList<E>
basicIterator
in class AbstractEList<E>
public java.util.ListIterator<E> basicListIterator()
AbstractEList
resolve
objects.
This implementation allocates a AbstractEList.NonResolvingEListIterator
.basicListIterator
in interface InternalEList<E>
basicListIterator
in class AbstractEList<E>
public java.util.ListIterator<E> basicListIterator(int index)
AbstractEList
resolve
objects.
This implementation allocates a AbstractEList.NonResolvingEListIterator
.basicListIterator
in interface InternalEList<E>
basicListIterator
in class AbstractEList<E>
index
- the starting index.public boolean basicContains(java.lang.Object object)
InternalEList
basicContains
in interface InternalEList<E>
public boolean basicContainsAll(java.util.Collection<?> collection)
InternalEList
basicContainsAll
in interface InternalEList<E>
public int basicIndexOf(java.lang.Object object)
InternalEList
basicIndexOf
in interface InternalEList<E>
public int basicLastIndexOf(java.lang.Object object)
InternalEList
basicLastIndexOf
in interface InternalEList<E>
public java.lang.Object[] basicToArray()
InternalEList
basicToArray
in interface InternalEList<E>
public <T> T[] basicToArray(T[] array)
InternalEList
basicToArray
in interface InternalEList<E>
public EObject getEObject()
EStructuralFeature.Setting
getEObject
in interface EStructuralFeature.Setting
public EStructuralFeature getEStructuralFeature()
EStructuralFeature.Setting
getEStructuralFeature
in interface EStructuralFeature.Setting
public java.lang.Object get(boolean resolve)
EStructuralFeature.Setting
resolves
the value.get
in interface EStructuralFeature.Setting
resolve
- whether to resolve.EObject.eGet(EStructuralFeature, boolean)
public void set(java.lang.Object newValue)
EStructuralFeature.Setting
set
in interface EStructuralFeature.Setting
newValue
- the newValue.EObject.eSet(EStructuralFeature, Object)
public boolean isSet()
InternalEList.Unsettable
isSet
in interface EStructuralFeature.Setting
isSet
in interface InternalEList.Unsettable<E>
EObject.eIsSet(org.eclipse.emf.ecore.EStructuralFeature)
public void unset()
InternalEList.Unsettable
unset
in interface EStructuralFeature.Setting
unset
in interface InternalEList.Unsettable<E>
EObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)
public NotificationChain basicRemove(java.lang.Object object, NotificationChain notifications)
InternalEList
basicRemove
in interface InternalEList<E>
public NotificationChain basicAdd(E object, NotificationChain notifications)
InternalEList
basicAdd
in interface InternalEList<E>