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:
- Cloneable, Collection, EList, InternalEList, List, RandomAccess, Serializable
- public class BasicInternalEList
- extends BasicEList
- implements InternalEList
- See Also:
- Serialized Form
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 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 Class dataClass
BasicInternalEList
public BasicInternalEList(Class dataClass)
BasicInternalEList
public BasicInternalEList(Class dataClass,
int initialCapacity)
BasicInternalEList
public BasicInternalEList(Class dataClass,
Collection collection)
BasicInternalEList
public BasicInternalEList(Class dataClass,
int size,
Object[] data)
newData
protected 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(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(Object object,
NotificationChain notifications)
- Description copied from interface:
InternalEList
- Adds the object without updating the inverse.
- Specified by:
basicAdd
in interface InternalEList
basicIterator
public 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 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 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 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.