public class DynamicList<E> extends DynamicCollection<E> implements List<E>, RandomAccess
ListIterator.
DynamicCollection.DynamicIterator
iterators, 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, toString
removeAll, retainAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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)
DynamicCollection
public 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–2018. All rights reserved.