public class CopyOnWriteList<T> extends AbstractList<T>
modCount
Constructor and Description |
---|
CopyOnWriteList() |
CopyOnWriteList(Collection<T> col) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
T |
get(int index) |
int |
hashCode() |
T |
remove(int index) |
T |
set(int index,
T element) |
int |
size() |
add, addAll, clear, equals, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public CopyOnWriteList()
public CopyOnWriteList(Collection<T> col)
public int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>
public T get(int index)
public void add(int index, T element)
public T remove(int index)
public int hashCode()
hashCode
in interface Collection<T>
hashCode
in interface List<T>
hashCode
in class AbstractList<T>
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.