T
- public class LightWeightCopyOnWriteList<T> extends AbstractList<T> implements RandomAccess
modCount
Constructor and Description |
---|
LightWeightCopyOnWriteList(List<T> list) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear() |
T |
get(int index) |
List<T> |
getList() |
T |
remove(int index) |
T |
set(int index,
T element) |
int |
size() |
Object[] |
toArray() |
<U> U[] |
toArray(U[] a) |
add, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
contains, containsAll, isEmpty, remove, removeAll, retainAll, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator
parallelStream, removeIf, stream
public T get(int index)
public void add(int index, T element)
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
addAll
in interface List<T>
addAll
in class AbstractCollection<T>
public boolean addAll(int index, Collection<? extends T> c)
public T remove(int index)
public Object[] toArray()
toArray
in interface Collection<T>
toArray
in interface List<T>
toArray
in class AbstractCollection<T>
public <U> U[] toArray(U[] a)
toArray
in interface Collection<T>
toArray
in interface List<T>
toArray
in class AbstractCollection<T>
public void clear()
clear
in interface Collection<T>
clear
in interface List<T>
clear
in class AbstractList<T>
public int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>
Copyright © 2019. All rights reserved.