org.eclipse.uml2.common.util
Class UnionEObjectEList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.emf.common.util.AbstractEList<E>
org.eclipse.emf.common.util.BasicEList<E>
org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList<E>
org.eclipse.uml2.common.util.UnionEObjectEList<E>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess, org.eclipse.emf.common.util.EList<E>, org.eclipse.emf.ecore.EStructuralFeature.Setting, org.eclipse.emf.ecore.util.InternalEList<E>, org.eclipse.emf.ecore.util.InternalEList.Unsettable<E>
public class UnionEObjectEList<E>
- extends org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList<E>
An unmodifiable list that represents a union of elements. This list is ideal
for implementing derived features whose values are obtained from the values
of other features in a non-trivial way.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList |
org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList.FastCompare<E> |
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList |
org.eclipse.emf.common.util.BasicEList.BasicIndexOutOfBoundsException, org.eclipse.emf.common.util.BasicEList.EIterator<E1>, org.eclipse.emf.common.util.BasicEList.EListIterator<E1>, org.eclipse.emf.common.util.BasicEList.NonResolvingEIterator<E1>, org.eclipse.emf.common.util.BasicEList.NonResolvingEListIterator<E1>, org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E> |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.util.InternalEList |
org.eclipse.emf.ecore.util.InternalEList.Unsettable<E> |
Fields inherited from class org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList |
eStructuralFeature, owner |
Fields inherited from class org.eclipse.emf.common.util.BasicEList |
data, size |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary |
UnionEObjectEList(org.eclipse.emf.ecore.InternalEObject owner,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
int size,
java.lang.Object[] data)
|
Method Summary |
boolean |
add(E object)
|
void |
add(int index,
E object)
|
boolean |
addAllUnique(java.util.Collection<? extends E> collection)
|
boolean |
addAllUnique(int index,
java.util.Collection<? extends E> collection)
|
void |
addUnique(E object)
|
void |
addUnique(int index,
E object)
|
org.eclipse.emf.common.notify.NotificationChain |
basicAdd(E object,
org.eclipse.emf.common.notify.NotificationChain notifications)
|
org.eclipse.emf.common.notify.NotificationChain |
basicRemove(java.lang.Object object,
org.eclipse.emf.common.notify.NotificationChain notifications)
|
protected boolean |
canContainNull()
|
void |
clear()
|
boolean |
contains(java.lang.Object object)
|
int |
indexOf(java.lang.Object object)
|
protected boolean |
isLoading()
|
protected boolean |
isUnique()
|
java.util.Iterator<E> |
iterator()
|
int |
lastIndexOf(java.lang.Object object)
|
java.util.ListIterator<E> |
listIterator()
|
java.util.ListIterator<E> |
listIterator(int index)
|
void |
move(int index,
E object)
|
E |
move(int targetIndex,
int sourceIndex)
|
E |
remove(int index)
|
protected E |
resolve(int index,
E object)
|
protected org.eclipse.emf.ecore.EObject |
resolveProxy(org.eclipse.emf.ecore.EObject eObject)
|
protected boolean |
useEquals()
|
Methods inherited from class org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList |
basicContains, basicContainsAll, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicToArray, basicToArray, get, getEObject, getEStructuralFeature, isSet, set, unset |
Methods inherited from class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList |
addAll, addAll, grow, remove, removeAll, retainAll, set, shrink |
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
addAllUnique, addAllUnique, assign, basicGet, clone, data, get, isEmpty, newData, primitiveGet, setData, setUnique, size, toArray, toArray |
Methods inherited from class org.eclipse.emf.common.util.AbstractEList |
didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, toString, validate |
Methods inherited from class java.util.AbstractList |
removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.util.InternalEList |
basicGet, setUnique |
Methods inherited from interface java.util.List |
addAll, addAll, containsAll, equals, get, hashCode, isEmpty, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
UnionEObjectEList
public UnionEObjectEList(org.eclipse.emf.ecore.InternalEObject owner,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
int size,
java.lang.Object[] data)
resolveProxy
protected org.eclipse.emf.ecore.EObject resolveProxy(org.eclipse.emf.ecore.EObject eObject)
resolve
protected E resolve(int index,
E object)
- Overrides:
resolve
in class org.eclipse.emf.common.util.AbstractEList<E>
canContainNull
protected boolean canContainNull()
- Overrides:
canContainNull
in class org.eclipse.emf.common.util.AbstractEList<E>
isUnique
protected boolean isUnique()
- Overrides:
isUnique
in class org.eclipse.emf.common.util.AbstractEList<E>
useEquals
protected boolean useEquals()
- Overrides:
useEquals
in class org.eclipse.emf.common.util.AbstractEList<E>
contains
public boolean contains(java.lang.Object object)
- Specified by:
contains
in interface java.util.Collection<E>
- Specified by:
contains
in interface java.util.List<E>
- Overrides:
contains
in class org.eclipse.emf.common.util.BasicEList<E>
indexOf
public int indexOf(java.lang.Object object)
- Specified by:
indexOf
in interface java.util.List<E>
- Overrides:
indexOf
in class org.eclipse.emf.common.util.BasicEList<E>
lastIndexOf
public int lastIndexOf(java.lang.Object object)
- Specified by:
lastIndexOf
in interface java.util.List<E>
- Overrides:
lastIndexOf
in class org.eclipse.emf.common.util.BasicEList<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 org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
listIterator
public java.util.ListIterator<E> listIterator()
- Specified by:
listIterator
in interface java.util.List<E>
- Overrides:
listIterator
in class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
listIterator
public java.util.ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interface java.util.List<E>
- Overrides:
listIterator
in class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
isLoading
protected boolean isLoading()
basicRemove
public org.eclipse.emf.common.notify.NotificationChain basicRemove(java.lang.Object object,
org.eclipse.emf.common.notify.NotificationChain notifications)
- Specified by:
basicRemove
in interface org.eclipse.emf.ecore.util.InternalEList<E>
- Overrides:
basicRemove
in class org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList<E>
basicAdd
public org.eclipse.emf.common.notify.NotificationChain basicAdd(E object,
org.eclipse.emf.common.notify.NotificationChain notifications)
- Specified by:
basicAdd
in interface org.eclipse.emf.ecore.util.InternalEList<E>
- Overrides:
basicAdd
in class org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList<E>
add
public boolean add(E object)
- Specified by:
add
in interface java.util.Collection<E>
- Specified by:
add
in interface java.util.List<E>
- Overrides:
add
in class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
add
public void add(int index,
E object)
- Specified by:
add
in interface java.util.List<E>
- Overrides:
add
in class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<E>
- Specified by:
clear
in interface java.util.List<E>
- Overrides:
clear
in class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
move
public void move(int index,
E object)
- Specified by:
move
in interface org.eclipse.emf.common.util.EList<E>
- Overrides:
move
in class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
addUnique
public void addUnique(E object)
- Specified by:
addUnique
in interface org.eclipse.emf.ecore.util.InternalEList<E>
- Overrides:
addUnique
in class org.eclipse.emf.common.util.BasicEList<E>
addUnique
public void addUnique(int index,
E object)
- Specified by:
addUnique
in interface org.eclipse.emf.ecore.util.InternalEList<E>
- Overrides:
addUnique
in class org.eclipse.emf.common.util.BasicEList<E>
addAllUnique
public boolean addAllUnique(int index,
java.util.Collection<? extends E> collection)
- Specified by:
addAllUnique
in interface org.eclipse.emf.ecore.util.InternalEList<E>
- Overrides:
addAllUnique
in class org.eclipse.emf.common.util.BasicEList<E>
move
public E move(int targetIndex,
int sourceIndex)
- Specified by:
move
in interface org.eclipse.emf.common.util.EList<E>
- Overrides:
move
in class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
remove
public E remove(int index)
- Specified by:
remove
in interface java.util.List<E>
- Overrides:
remove
in class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E>
addAllUnique
public boolean addAllUnique(java.util.Collection<? extends E> collection)
- Specified by:
addAllUnique
in interface org.eclipse.emf.ecore.util.InternalEList<E>
- Overrides:
addAllUnique
in class org.eclipse.emf.common.util.BasicEList<E>