org.eclipse.gemini.blueprint.service.importer.support.internal.collection
Class DynamicList<E>
java.lang.Object
java.util.AbstractCollection<E>
org.eclipse.gemini.blueprint.service.importer.support.internal.collection.DynamicCollection<E>
org.eclipse.gemini.blueprint.service.importer.support.internal.collection.DynamicList<E>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, List<E>, RandomAccess
- Direct Known Subclasses:
- DynamicSortedList
public class DynamicList<E>
- extends DynamicCollection<E>
- implements List<E>, RandomAccess
Subclass offering a List extension for a DynamicCollection. This allows not
just forward, but also backwards iteration through the
ListIterator.
- Author:
- Costin Leau
| Methods inherited from class org.eclipse.gemini.blueprint.service.importer.support.internal.collection.DynamicCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, size, toArray, toArray, toString |
| Methods inherited from interface java.util.List |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
DynamicList
public DynamicList()
DynamicList
public DynamicList(Collection<? extends E> c)
DynamicList
public DynamicList(int size)
add
public void add(int index,
E o)
- Specified by:
add in interface List<E>- Overrides:
add in class DynamicCollection<E>
addAll
public boolean addAll(int index,
Collection<? extends E> c)
- Specified by:
addAll in interface List<E>
get
public E get(int index)
- Specified by:
get in interface List<E>
indexOf
public int indexOf(Object o)
- Description copied from class:
DynamicCollection
- Hook used by wrapping collections to determine the position of the object
being removed while iterating.
- Specified by:
indexOf in interface List<E>- Overrides:
indexOf in class DynamicCollection<E>
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf in interface List<E>
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator in interface List<E>
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator in interface List<E>
remove
public E remove(int index)
- Specified by:
remove in interface List<E>- Overrides:
remove in class DynamicCollection<E>
set
public E set(int index,
E o)
- Specified by:
set in interface List<E>
subList
public List<E> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<E>
Copyright © 2006-2012. All Rights Reserved.