E
- the type of elements in this list@ParametersAreNonnullByDefault public class ContentsList<E extends org.eclipse.emf.ecore.EObject> extends org.eclipse.emf.ecore.util.AbstractSequentialInternalEList<E>
List
that delegates its operations to the associated Store
.
Instances of this class are created by EObject.eContents()
and allows
to access the content of a PersistentEObject
by lazily loading the elements.
modCount
Modifier | Constructor and Description |
---|---|
protected |
ContentsList(PersistentEObject owner,
List<org.eclipse.emf.ecore.EStructuralFeature> features,
boolean resolve)
Constructs a new
ContentsList . |
Modifier and Type | Method and Description |
---|---|
List<E> |
basicList() |
static <E extends org.eclipse.emf.ecore.EObject> |
empty()
Returns an empty
ContentsList . |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
protected boolean |
isIncluded(org.eclipse.emf.ecore.EStructuralFeature feature)
Returns
true if the feature must be included in the result, false if it should be
ignored. |
protected boolean |
isIncludedEntry(org.eclipse.emf.ecore.util.FeatureMap.Entry entry)
Returns
true if the feature of the entry must be included in the result, false if it
should be ignored. |
ListIterator<E> |
listIterator(int index) |
void |
move(int newPosition,
E e) |
E |
move(int newPosition,
int oldPosition) |
static <E extends org.eclipse.emf.ecore.EObject> |
newList(PersistentEObject owner)
Creates a new
ContentsList with the given owner . |
protected fr.inria.atlanmod.neoemf.core.internal.collect.ContentsListIterator<E> |
newListIterator()
Creates a list iterator over the elements in this list
|
int |
size() |
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicListIterator, basicListIterator, basicRemove, basicToArray, basicToArray, setUnique
add, addAll, get, iterator, remove, set
add, clear, indexOf, lastIndexOf, listIterator, removeRange, subList
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, iterator, lastIndexOf, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
protected ContentsList(PersistentEObject owner, List<org.eclipse.emf.ecore.EStructuralFeature> features, boolean resolve)
ContentsList
.owner
- the owner of this listfeatures
- the containment features that are handled by this listresolve
- true
if proxied objects
has to be resolved@Nonnull public static <E extends org.eclipse.emf.ecore.EObject> ContentsList<E> empty()
ContentsList
.E
- the type of elements in this list@Nonnull public static <E extends org.eclipse.emf.ecore.EObject> ContentsList<E> newList(PersistentEObject owner)
ContentsList
with the given owner
.E
- the type of elements in this listowner
- the owner of this list@Nonnull protected fr.inria.atlanmod.neoemf.core.internal.collect.ContentsListIterator<E> newListIterator()
protected boolean isIncluded(org.eclipse.emf.ecore.EStructuralFeature feature)
true
if the feature
must be included in the result, false
if it should be
ignored.feature
- the feature to testtrue
if the feature
must be included in the result, false
if it should be ignoredprotected boolean isIncludedEntry(org.eclipse.emf.ecore.util.FeatureMap.Entry entry)
true
if the feature of the entry
must be included in the result, false
if it
should be ignored.entry
- the entry to testtrue
if the feature of the entry
must be included in the result, false
if it
should be ignoredisIncluded(EStructuralFeature)
@Nonnull public ListIterator<E> listIterator(int index)
listIterator
in interface List<E extends org.eclipse.emf.ecore.EObject>
listIterator
in class AbstractSequentialList<E extends org.eclipse.emf.ecore.EObject>
@Nonnegative public int size()
size
in interface Collection<E extends org.eclipse.emf.ecore.EObject>
size
in interface List<E extends org.eclipse.emf.ecore.EObject>
size
in class AbstractCollection<E extends org.eclipse.emf.ecore.EObject>
public boolean isEmpty()
isEmpty
in interface Collection<E extends org.eclipse.emf.ecore.EObject>
isEmpty
in interface List<E extends org.eclipse.emf.ecore.EObject>
isEmpty
in class AbstractCollection<E extends org.eclipse.emf.ecore.EObject>
public void move(int newPosition, E e)
public E move(int newPosition, int oldPosition)
public boolean equals(@Nullable Object o)
equals
in interface Collection<E extends org.eclipse.emf.ecore.EObject>
equals
in interface List<E extends org.eclipse.emf.ecore.EObject>
equals
in class AbstractList<E extends org.eclipse.emf.ecore.EObject>
public int hashCode()
hashCode
in interface Collection<E extends org.eclipse.emf.ecore.EObject>
hashCode
in interface List<E extends org.eclipse.emf.ecore.EObject>
hashCode
in class AbstractList<E extends org.eclipse.emf.ecore.EObject>
Copyright © 2013–2019 Atlanmod. All rights reserved.