org.eclipse.emf.ecore.util
Class BasicInternalEList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by org.eclipse.emf.common.util.BasicEList<E>
              extended by org.eclipse.emf.ecore.util.BasicInternalEList<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, EList<E>, InternalEList<E>

public class BasicInternalEList<E>
extends BasicEList<E>
implements InternalEList<E>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.FastCompare<E>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1>, BasicEList.UnmodifiableEList<E>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable<E>
 
Field Summary
protected  java.lang.Class<? extends E> dataClass
           
 
Fields inherited from class org.eclipse.emf.common.util.BasicEList
data, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BasicInternalEList(java.lang.Class<? extends E> dataClass)
           
BasicInternalEList(java.lang.Class<? extends E> dataClass, java.util.Collection<? extends E> collection)
           
BasicInternalEList(java.lang.Class<? extends E> dataClass, int initialCapacity)
           
BasicInternalEList(java.lang.Class<? extends E> dataClass, int size, java.lang.Object[] data)
           
 
Method Summary
 NotificationChain basicAdd(E object, NotificationChain notifications)
          Adds the object without updating the inverse.
 java.util.Iterator<E> basicIterator()
          Returns a read-only iterator that does not resolve objects.
 java.util.List<E> basicList()
          Returns an unsafe list that provides a non-resolving view of the underlying data storage.
 java.util.ListIterator<E> basicListIterator()
          Returns a read-only list iterator that does not resolve objects.
 java.util.ListIterator<E> basicListIterator(int index)
          Returns a read-only list iterator advanced to the given index that does not resolve objects.
 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.ecore.util.InternalEList
addUnique, addUnique, basicGet, setUnique
 
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
 

Field Detail

dataClass

protected final java.lang.Class<? extends E> dataClass
Constructor Detail

BasicInternalEList

public BasicInternalEList(java.lang.Class<? extends E> dataClass)

BasicInternalEList

public BasicInternalEList(java.lang.Class<? extends E> dataClass,
                          int initialCapacity)

BasicInternalEList

public BasicInternalEList(java.lang.Class<? extends E> dataClass,
                          java.util.Collection<? extends E> collection)

BasicInternalEList

public BasicInternalEList(java.lang.Class<? extends E> dataClass,
                          int size,
                          java.lang.Object[] data)
Method Detail

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 negligible.

Overrides:
newData in class BasicEList<E>
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<E>

basicAdd

public NotificationChain basicAdd(E object,
                                  NotificationChain notifications)
Description copied from interface: InternalEList
Adds the object without updating the inverse.

Specified by:
basicAdd in interface InternalEList<E>

basicIterator

public java.util.Iterator<E> basicIterator()
Description copied from class: BasicEList
Returns a read-only iterator that does not resolve objects. This implementation allocates a BasicEList.NonResolvingEIterator.

Specified by:
basicIterator in interface InternalEList<E>
Overrides:
basicIterator in class BasicEList<E>
Returns:
a read-only iterator that does not resolve objects.

basicList

public java.util.List<E> basicList()
Description copied from class: BasicEList
Returns an unsafe list that provides a non-resolving view of the underlying data storage.

Specified by:
basicList in interface InternalEList<E>
Overrides:
basicList in class BasicEList<E>
Returns:
an unsafe list that provides a non-resolving view of the underlying data storage.

basicListIterator

public java.util.ListIterator<E> basicListIterator()
Description copied from class: BasicEList
Returns a read-only list iterator that does not resolve objects. This implementation allocates a BasicEList.NonResolvingEListIterator.

Specified by:
basicListIterator in interface InternalEList<E>
Overrides:
basicListIterator in class BasicEList<E>
Returns:
a read-only list iterator that does not resolve objects.

basicListIterator

public java.util.ListIterator<E> basicListIterator(int index)
Description copied from class: BasicEList
Returns a read-only list iterator advanced to the given index that does not resolve objects. This implementation allocates a BasicEList.NonResolvingEListIterator.

Specified by:
basicListIterator in interface InternalEList<E>
Overrides:
basicListIterator in class BasicEList<E>
Parameters:
index - the starting index.
Returns:
a read-only list iterator advanced to the index.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.