public class DefaultListState<T> extends AbstractCollectionState<ListState<T>,List<T>,T> implements ListState<T>
collection| Constructor and Description |
|---|
DefaultListState() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
addAll(int index,
Collection<? extends T> c) |
protected List<T> |
createCollection()
Creates the collection.
|
T |
get(int index) |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
T |
set(int index,
T value) |
List<T> |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, init, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addAll, clear, contains, containsAll, init, isEmpty, remove, removeAll, retainAll, sizeadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected List<T> createCollection()
AbstractCollectionStatecreateCollection in class AbstractCollectionState<ListState<T>,List<T>,T>public T get(int index)
public boolean addAll(int index,
Collection<? extends T> c)
public void add(int index,
T element)
public T remove(int index)
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>Copyright © 2013-2015. All Rights Reserved.