|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.util.CopyOnWriteList<E>
public class CopyOnWriteList<E>
List
-like implementation that has copy-on-write semantics.
This class is suitable where highly concurrent access is needed, yet the write operation is relatively uncommon.
Nested Class Summary | |
---|---|
static class |
CopyOnWriteList.ConverterImpl
Converter implementation for XStream. |
Constructor Summary | |
---|---|
CopyOnWriteList()
|
|
CopyOnWriteList(List<E> core)
|
Method Summary | |
---|---|
void |
add(E e)
|
void |
addAll(Collection<? extends E> items)
|
void |
addAllTo(Collection<? super E> dst)
|
void |
clear()
|
boolean |
contains(Object item)
|
E |
get(int index)
|
List<E> |
getView()
|
boolean |
isEmpty()
|
Iterator<E> |
iterator()
Returns an iterator. |
boolean |
remove(E e)
Removes an item from the list. |
void |
replaceBy(Collection<? extends E> that)
Completely replaces this list by the contents of the given list. |
void |
replaceBy(CopyOnWriteList<? extends E> that)
Completely replaces this list by the contents of the given list. |
void |
replaceBy(E... that)
Completely replaces this list by the contents of the given list. |
int |
size()
|
E[] |
toArray(E[] array)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyOnWriteList(List<E> core)
public CopyOnWriteList()
Method Detail |
---|
public void add(E e)
public void addAll(Collection<? extends E> items)
public boolean remove(E e)
public Iterator<E> iterator()
iterator
in interface Iterable<E>
public void replaceBy(CopyOnWriteList<? extends E> that)
public void replaceBy(Collection<? extends E> that)
public void replaceBy(E... that)
public void clear()
public E[] toArray(E[] array)
public List<E> getView()
public void addAllTo(Collection<? super E> dst)
public E get(int index)
public boolean isEmpty()
public int size()
public boolean contains(Object item)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |