public static class FeatureMapUtil.FeatureEList<E> extends java.util.AbstractList<E> implements InternalEList.Unsettable<E>, EStructuralFeature.Setting
Modifier and Type | Class and Description |
---|---|
static class |
FeatureMapUtil.FeatureEList.Basic<E> |
InternalEList.Unsettable<E>
Modifier and Type | Field and Description |
---|---|
protected EStructuralFeature |
feature |
protected FeatureMap.Internal |
featureMap |
Constructor and Description |
---|
FeatureMapUtil.FeatureEList(EStructuralFeature feature,
FeatureMap.Internal featureMap) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object object) |
boolean |
add(java.lang.Object object) |
boolean |
addAll(java.util.Collection<? extends E> collection) |
boolean |
addAll(int index,
java.util.Collection<? extends E> collection) |
boolean |
addAllUnique(java.util.Collection<? extends E> collection)
Adds the objects without verifying uniqueness.
|
boolean |
addAllUnique(FeatureMap.Entry.Internal[] entries,
int start,
int end) |
boolean |
addAllUnique(int index,
java.util.Collection<? extends E> collection)
Adds the objects without verifying uniqueness.
|
boolean |
addAllUnique(int index,
FeatureMap.Entry.Internal[] entries,
int start,
int end) |
void |
addUnique(FeatureMap.Entry.Internal entry) |
void |
addUnique(int index,
java.lang.Object object)
Adds the object without verifying uniqueness.
|
void |
addUnique(java.lang.Object object)
Adds the object without verifying uniqueness.
|
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.
|
E |
basicGet(int index)
Returns the unresolved value.
|
int |
basicIndexOf(java.lang.Object object)
Returns the index of the object within the list of unresolved values.
|
java.util.Iterator<E> |
basicIterator()
Returns an iterator that yields unresolved values.
|
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 unmodifiable list that yields unresolved values.
|
java.util.ListIterator<E> |
basicListIterator()
Returns a list iterator that yields unresolved values.
|
java.util.ListIterator<E> |
basicListIterator(int index)
Returns a list iterator that yields unresolved values.
|
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.
|
void |
clear() |
boolean |
contains(java.lang.Object object) |
boolean |
containsAll(java.util.Collection<?> collection) |
java.lang.Object |
get(boolean resolve)
Returns the value held by the feature of the object;
it optionally
resolves the value. |
E |
get(int index) |
EObject |
getEObject()
Returns the object holding a value.
|
EStructuralFeature |
getEStructuralFeature()
Returns the specific feature holding a value for the object.
|
java.lang.Object |
getFeature() |
int |
getFeatureID() |
int |
indexOf(java.lang.Object object) |
boolean |
isEmpty() |
boolean |
isSet()
Returns whether a value is held by the feature of the object.
|
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object object) |
java.util.ListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int index) |
E |
move(int targetIndex,
int sourceIndex)
Moves the object from the old position to the new position.
|
void |
move(int index,
java.lang.Object object)
Moves the object to the new position, if is in the list.
|
E |
remove(int index) |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> collection) |
boolean |
retainAll(java.util.Collection<?> collection) |
E |
set(int index,
E object) |
void |
set(java.lang.Object newValue)
Set the value held by the feature of the object.
|
E |
setUnique(int index,
E object)
Sets the object without verifying uniqueness.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
java.lang.String |
toString() |
void |
unset()
Unsets the value held by the feature of the object.
|
protected EStructuralFeature feature
protected FeatureMap.Internal featureMap
public FeatureMapUtil.FeatureEList(EStructuralFeature feature, FeatureMap.Internal featureMap)
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object object)
public int indexOf(java.lang.Object object)
public int lastIndexOf(java.lang.Object object)
public boolean containsAll(java.util.Collection<?> collection)
public java.util.Iterator<E> iterator()
public java.util.ListIterator<E> listIterator()
public java.util.ListIterator<E> listIterator(int index)
public E basicGet(int index)
InternalEList
basicGet
in interface InternalEList<E>
public java.util.List<E> basicList()
InternalEList
basicList
in interface InternalEList<E>
public java.util.Iterator<E> basicIterator()
InternalEList
basicIterator
in interface InternalEList<E>
public java.util.ListIterator<E> basicListIterator()
InternalEList
basicListIterator
in interface InternalEList<E>
public java.util.ListIterator<E> basicListIterator(int index)
InternalEList
basicListIterator
in interface InternalEList<E>
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] array)
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 boolean add(java.lang.Object object)
public void add(int index, java.lang.Object object)
public boolean addAll(java.util.Collection<? extends E> collection)
public boolean addAll(int index, java.util.Collection<? extends E> collection)
public void addUnique(java.lang.Object object)
InternalEList
addUnique
in interface InternalEList<E>
public void addUnique(int index, java.lang.Object object)
InternalEList
addUnique
in interface InternalEList<E>
public boolean addAllUnique(java.util.Collection<? extends E> collection)
InternalEList
addAllUnique
in interface InternalEList<E>
public boolean addAllUnique(int index, java.util.Collection<? extends E> collection)
InternalEList
addAllUnique
in interface InternalEList<E>
public void addUnique(FeatureMap.Entry.Internal entry)
public boolean addAllUnique(FeatureMap.Entry.Internal[] entries, int start, int end)
public boolean addAllUnique(int index, FeatureMap.Entry.Internal[] entries, int start, int end)
public NotificationChain basicAdd(E object, NotificationChain notifications)
InternalEList
basicAdd
in interface InternalEList<E>
public boolean remove(java.lang.Object object)
public E remove(int index)
public NotificationChain basicRemove(java.lang.Object object, NotificationChain notifications)
InternalEList
basicRemove
in interface InternalEList<E>
public boolean removeAll(java.util.Collection<?> collection)
public boolean retainAll(java.util.Collection<?> collection)
public void clear()
public void move(int index, java.lang.Object object)
EList
public E move(int targetIndex, int sourceIndex)
EList
public E get(int index)
public E setUnique(int index, E object)
InternalEList
setUnique
in interface InternalEList<E>
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 java.lang.Object getFeature()
public int getFeatureID()
public EStructuralFeature getEStructuralFeature()
EStructuralFeature.Setting
getEStructuralFeature
in interface EStructuralFeature.Setting
public EObject getEObject()
EStructuralFeature.Setting
getEObject
in interface EStructuralFeature.Setting
public java.lang.String toString()
toString
in class java.util.AbstractCollection<E>