org.eclipse.emf.ecore.util
Class BasicInternalEList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
org.eclipse.emf.common.util.BasicEList
org.eclipse.emf.ecore.util.BasicInternalEList
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, EList, InternalEList, java.util.List, java.util.RandomAccess, java.io.Serializable
- public class BasicInternalEList
- extends BasicEList
- implements InternalEList
- See Also:
- Serialized Form
Field Summary |
protected java.lang.Class |
dataClass
|
Fields inherited from class java.util.AbstractList |
modCount |
Method Summary |
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. |
protected java.lang.Object[] |
newData(int capacity)
Returns new allocated data storage.
|
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
add, add, addAll, addAll, addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, canContainNull, clear, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, indexOf, isEmpty, isUnique, iterator, lastIndexOf, listIterator, listIterator, move, move, remove, remove, removeAll, resolve, retainAll, set, setData, setUnique, shrink, size, toArray, toArray, toString, useEquals, validate |
Methods inherited from class java.util.AbstractList |
removeRange, subList |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.util.EList |
move, move |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
dataClass
protected final java.lang.Class dataClass
BasicInternalEList
public BasicInternalEList(java.lang.Class dataClass)
BasicInternalEList
public BasicInternalEList(java.lang.Class dataClass,
int initialCapacity)
BasicInternalEList
public BasicInternalEList(java.lang.Class dataClass,
java.util.Collection collection)
BasicInternalEList
public BasicInternalEList(java.lang.Class dataClass,
int size,
java.lang.Object[] data)
newData
protected java.lang.Object[] newData(int capacity)
- Description copied from class:
BasicEList
- Returns new allocated data storage.
Clients may override this to create typed storage.
The cost of type checking via a typed array is negligable.
- Overrides:
newData
in class BasicEList
- Returns:
- new data storage.
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
basicIterator
public java.util.Iterator basicIterator()
- Description copied from interface:
InternalEList
- Returns an iterator that yields unresolved values.
- Specified by:
basicIterator
in interface InternalEList
- Overrides:
basicIterator
in class BasicEList
- Returns:
- a read-only iterator that does not resolve objects.
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
- Overrides:
basicList
in class BasicEList
- Returns:
- an unsafe list that provides a non-resolving view of the underlying data storage.
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
- Overrides:
basicListIterator
in class BasicEList
- Returns:
- a read-only list iterator that does not resolve objects.
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
- Overrides:
basicListIterator
in class BasicEList
- Parameters:
index
- the starting index.
- Returns:
- a read-only list iterator advanced to the index.