org.eclipse.emf.ecore.util
Class EContentsEList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
org.eclipse.emf.ecore.util.AbstractSequentialInternalEList<E>
org.eclipse.emf.ecore.util.EContentsEList<E>
- All Implemented Interfaces:
- java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, EList<E>, InternalEList<E>
- Direct Known Subclasses:
- ECrossReferenceEList
public class EContentsEList<E>
- extends AbstractSequentialInternalEList<E>
- implements EList<E>, InternalEList<E>
| Fields inherited from class java.util.AbstractList |
modCount |
| Methods inherited from class org.eclipse.emf.ecore.util.AbstractSequentialInternalEList |
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicIndexOf, basicLastIndexOf, basicRemove, basicToArray, basicToArray, setUnique |
| 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 org.eclipse.emf.ecore.util.InternalEList |
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicIndexOf, basicLastIndexOf, basicRemove, basicToArray, basicToArray, setUnique |
EMPTY_CONTENTS_ELIST
public static final EContentsEList<?> EMPTY_CONTENTS_ELIST
eObject
protected final EObject eObject
eStructuralFeatures
protected final EStructuralFeature[] eStructuralFeatures
EContentsEList
public EContentsEList(EObject eObject)
EContentsEList
public EContentsEList(EObject eObject,
java.util.List<? extends EStructuralFeature> eStructuralFeatures)
EContentsEList
public EContentsEList(EObject eObject,
EStructuralFeature[] eStructuralFeatures)
emptyContentsEList
public static <T> EContentsEList<T> emptyContentsEList()
createEContentsEList
public static <T> EContentsEList<T> createEContentsEList(EObject eObject)
newListIterator
protected java.util.ListIterator<E> newListIterator()
newResolvingListIterator
protected java.util.ListIterator<E> newResolvingListIterator()
newNonResolvingListIterator
protected java.util.ListIterator<E> newNonResolvingListIterator()
newIterator
protected java.util.Iterator<E> newIterator()
useIsSet
protected boolean useIsSet()
resolve
protected boolean resolve()
isIncluded
protected boolean isIncluded(EStructuralFeature eStructuralFeature)
isIncludedEntry
protected boolean isIncludedEntry(EStructuralFeature eStructuralFeature)
listIterator
public java.util.ListIterator<E> listIterator(int index)
- Specified by:
listIterator in interface java.util.List<E>- Specified by:
listIterator in class java.util.AbstractSequentialList<E>
iterator
public java.util.Iterator<E> iterator()
- Specified by:
iterator in interface java.lang.Iterable<E>- Specified by:
iterator in interface java.util.Collection<E>- Specified by:
iterator in interface java.util.List<E>- Overrides:
iterator in class java.util.AbstractSequentialList<E>
size
public int size()
- Specified by:
size in interface java.util.Collection<E>- Specified by:
size in interface java.util.List<E>- Specified by:
size in class java.util.AbstractCollection<E>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Collection<E>- Specified by:
isEmpty in interface java.util.List<E>- Overrides:
isEmpty in class java.util.AbstractCollection<E>
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<E>- Overrides:
move in class AbstractSequentialInternalEList<E>
- Parameters:
newPosition - the position of the object after the move.o - the object to move.
move
public E 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<E>- Overrides:
move in class AbstractSequentialInternalEList<E>
- Parameters:
newPosition - the position of the object after the move.oldPosition - the position of the object before the move.
- Returns:
- the moved object.
basicGet
public E basicGet(int index)
- Description copied from interface:
InternalEList
- Returns the unresolved value.
- Specified by:
basicGet in interface InternalEList<E>- Overrides:
basicGet in class AbstractSequentialInternalEList<E>
basicList
public java.util.List<E> basicList()
- Description copied from interface:
InternalEList
- Returns an unmodifiable list that yields unresolved values.
- Specified by:
basicList in interface InternalEList<E>- Overrides:
basicList in class AbstractSequentialInternalEList<E>
basicIterator
public java.util.Iterator<E> basicIterator()
- Description copied from interface:
InternalEList
- Returns an iterator that yields unresolved values.
- Specified by:
basicIterator in interface InternalEList<E>- Overrides:
basicIterator in class AbstractSequentialInternalEList<E>
basicListIterator
public java.util.ListIterator<E> basicListIterator()
- Description copied from interface:
InternalEList
- Returns a list iterator that yields unresolved values.
- Specified by:
basicListIterator in interface InternalEList<E>- Overrides:
basicListIterator in class AbstractSequentialInternalEList<E>
basicListIterator
public java.util.ListIterator<E> basicListIterator(int index)
- Description copied from interface:
InternalEList
- Returns a list iterator that yields unresolved values.
- Specified by:
basicListIterator in interface InternalEList<E>- Overrides:
basicListIterator in class AbstractSequentialInternalEList<E>