org.eclipse.emf.ecore.util
Class EContentsEList
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.AbstractSequentialList
|
+--org.eclipse.emf.ecore.util.EContentsEList
- All Implemented Interfaces:
- java.util.Collection, EList, InternalEList, java.util.List
- Direct Known Subclasses:
- ECrossReferenceEList
- public class EContentsEList
- extends java.util.AbstractSequentialList
- implements EList, InternalEList
Fields inherited from class java.util.AbstractList |
modCount |
Method Summary |
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(java.lang.Object object,
NotificationChain notifications)
Adds the object without updating the inverse. |
java.util.Iterator |
basicIterator()
Returns an iterator that yields unresolved values. |
java.util.List |
basicList()
Returns an unmodifiable list that yields unresolved values. |
java.util.ListIterator |
basicListIterator()
Returns a list iterator that yields unresolved values. |
java.util.ListIterator |
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. |
boolean |
isEmpty()
|
protected boolean |
isIncluded(EStructuralFeature eStructuralFeature)
|
java.util.Iterator |
iterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
move(int newPosition,
int oldPosition)
Moves the object from the old position to the new position. |
void |
move(int newPosition,
java.lang.Object o)
Moves the object to the new position, if is in the list. |
protected java.util.Iterator |
newIterator()
|
protected java.util.ListIterator |
newListIterator()
|
protected boolean |
resolve()
|
java.lang.Object |
setUnique(int index,
java.lang.Object object)
Sets the object without verifying uniqueness. |
int |
size()
|
protected boolean |
useIsSet()
|
Methods inherited from class java.util.AbstractSequentialList |
add, addAll, get, remove, set |
Methods inherited from class java.util.AbstractList |
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
eObject
protected final EObject eObject
eStructuralFeatures
protected final EStructuralFeature[] eStructuralFeatures
EContentsEList
public EContentsEList(EObject eObject)
EContentsEList
public EContentsEList(EObject eObject,
java.util.List eStructuralFeatures)
EContentsEList
public EContentsEList(EObject eObject,
EStructuralFeature[] eStructuralFeatures)
newListIterator
protected java.util.ListIterator newListIterator()
newIterator
protected java.util.Iterator newIterator()
useIsSet
protected boolean useIsSet()
resolve
protected boolean resolve()
isIncluded
protected boolean isIncluded(EStructuralFeature eStructuralFeature)
listIterator
public java.util.ListIterator listIterator(int index)
- Specified by:
listIterator
in interface java.util.List
- Overrides:
listIterator
in class java.util.AbstractSequentialList
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interface java.util.List
- Overrides:
iterator
in class java.util.AbstractSequentialList
size
public int size()
- Specified by:
size
in interface java.util.List
- Overrides:
size
in class java.util.AbstractCollection
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.List
- Overrides:
isEmpty
in class java.util.AbstractCollection
move
public void move(int newPosition,
java.lang.Object o)
- Description copied from interface:
EList
- Moves the object to the new position, if is in the list.
- Specified by:
move
in interface EList
- Following copied from interface:
org.eclipse.emf.common.util.EList
- Parameters:
newPosition
- the position of the object after the move.object
- the object to move.
move
public java.lang.Object move(int newPosition,
int oldPosition)
- Description copied from interface:
EList
- Moves the object from the old position to the new position.
- Specified by:
move
in interface EList
- Following copied from interface:
org.eclipse.emf.common.util.EList
- Parameters:
newPosition
- the position of the object after the move.oldPosition
- the position of the object before the move.- Returns:
- the moved object.
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
basicIterator
public java.util.Iterator basicIterator()
- Description copied from interface:
InternalEList
- Returns an iterator that yields unresolved values.
- Specified by:
basicIterator
in interface InternalEList
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
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
basicRemove
public NotificationChain basicRemove(java.lang.Object object,
NotificationChain notifications)
- Description copied from interface:
InternalEList
- Removes the object with without updating the inverse.
- Specified by:
basicRemove
in interface InternalEList
basicAdd
public NotificationChain basicAdd(java.lang.Object object,
NotificationChain notifications)
- Description copied from interface:
InternalEList
- Adds the object without updating the inverse.
- Specified by:
basicAdd
in interface InternalEList
addUnique
public void addUnique(java.lang.Object object)
- Description copied from interface:
InternalEList
- Adds the object without verifying uniqueness.
- Specified by:
addUnique
in interface InternalEList
addUnique
public void addUnique(int index,
java.lang.Object object)
- Description copied from interface:
InternalEList
- Adds the object without verifying uniqueness.
- Specified by:
addUnique
in interface InternalEList
setUnique
public java.lang.Object setUnique(int index,
java.lang.Object object)
- Description copied from interface:
InternalEList
- Sets the object without verifying uniqueness.
- Specified by:
setUnique
in interface InternalEList