public class DynamicList<E> extends DynamicCollection<E> implements List<E>, RandomAccess
ListIterator.DynamicCollection.DynamicIteratoriterators, iteratorsLock, storage| Constructor and Description |
|---|
DynamicList() |
DynamicList(Collection<? extends E> c) |
DynamicList(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
E o) |
boolean |
addAll(int index,
Collection<? extends E> c) |
E |
get(int index) |
int |
indexOf(Object o)
Hook used by wrapping collections to determine the position of the object
being removed while iterating.
|
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
E |
set(int index,
E o) |
List<E> |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, size, toArray, toArray, toStringremoveAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic DynamicList()
public DynamicList(Collection<? extends E> c)
public DynamicList(int size)
public void add(int index,
E o)
public boolean addAll(int index,
Collection<? extends E> c)
public int indexOf(Object o)
DynamicCollectionpublic int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>public E remove(int index)
Copyright © 2006–2016. All rights reserved.