Go to the documentation of this file.
9 package javolution.util.internal.collection;
11 import java.util.Collection;
12 import java.util.Iterator;
49 public void remove() {
50 if (
next ==
null)
throw new IllegalStateException();
70 public boolean add(E element) {
73 return target().add(element);
80 public boolean addAll(Collection<? extends E> c) {
114 return target().comparator();
121 return target().contains(o);
131 return target().containsAll(c);
141 return target().equals(o);
151 return target().hashCode();
161 return target().isEmpty();
177 target().perform(action, view);
184 public boolean remove(Object o) {
187 return target().remove(o);
197 return target().removeAll(c);
207 return target().retainAll(c);
223 @SuppressWarnings(
"unchecked")
234 for (
int i = 0; i < tmp.length; i++) {
249 return target().toArray();
259 return target().toArray(a);
269 }
catch (CloneNotSupportedException e) {
270 throw new Error(
"Cannot happen since target is Cloneable.");
static final long serialVersionUID
CollectionService< E > threadSafe()
boolean addAll(Collection<? extends E > c)
final WriteLock writeLock
void perform(Consumer< CollectionService< E >> action, CollectionService< E > view)
Equality<? super E > comparator()
final Iterator< E > targetIterator
boolean removeAll(Collection<?> c)
SharedCollectionImpl< E > clone()
boolean containsAll(Collection<?> c)
SharedCollectionImpl(CollectionService< E > target, ReadWriteLockImpl lock)
CollectionService< E > target
CollectionService< E > cloneTarget()
CollectionService< E >[] split(int n)
public< T > T[] toArray(T[] a)
boolean contains(Object o)
SharedCollectionImpl(CollectionService< E > target)
boolean retainAll(Collection<?> c)