Go to the documentation of this file.
9 package javolution.util.internal.collection;
11 import java.util.Collection;
12 import java.util.Iterator;
44 public void remove() {
45 if (
current ==
null)
throw new IllegalStateException();
61 public synchronized boolean add(E element) {
62 boolean changed =
target().add(element);
68 public synchronized boolean addAll(Collection<? extends E> c) {
69 boolean changed =
target().addAll(c);
75 public synchronized void clear() {
125 public synchronized boolean remove(Object o) {
126 boolean changed =
target().remove(o);
132 public synchronized boolean removeAll(Collection<?> c) {
133 boolean changed =
target().removeAll(c);
139 public synchronized boolean retainAll(Collection<?> c) {
140 boolean changed =
target().retainAll(c);
150 @SuppressWarnings(
"unchecked")
176 target().update(action, view);
194 }
catch (CloneNotSupportedException e) {
195 throw new Error(
"Cannot happen since target is Cloneable.");
final boolean updateInProgress()
final Iterator< E > targetIterator
public< T > T[] toArray(T[] a)
CollectionService< E > cloneTarget()
CollectionService< E >[] split(int n)
synchronized boolean retainAll(Collection<?> c)
boolean contains(Object o)
static final long serialVersionUID
transient Thread updatingThread
synchronized void update(Consumer< CollectionService< E >> action, CollectionService< E > view)
CollectionService< E > target
synchronized void clear()
AtomicCollectionImpl(CollectionService< E > target)
synchronized boolean addAll(Collection<? extends E > c)
synchronized boolean add(E element)
CollectionService< E > threadSafe()
boolean containsAll(Collection<?> c)
synchronized AtomicCollectionImpl< E > clone()
synchronized boolean removeAll(Collection<?> c)
synchronized boolean remove(Object o)
Equality<? super E > comparator()
CollectionService< E > targetView()
volatile CollectionService< E > immutable