static class Synchronized.SynchronizedCollection<E> extends Synchronized.SynchronizedObject implements java.util.Collection<E>
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
delegate, mutex| Modifier | Constructor and Description |
|---|---|
private |
SynchronizedCollection(java.util.Collection<E> delegate,
java.lang.Object mutex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
(package private) java.util.Collection<E> |
delegate() |
void |
forEach(java.util.function.Consumer<? super E> action) |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
java.util.stream.Stream<E> |
parallelStream() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeIf(java.util.function.Predicate<? super E> filter) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.util.Spliterator<E> |
spliterator() |
java.util.stream.Stream<E> |
stream() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
toStringprivate static final long serialVersionUID
private SynchronizedCollection(java.util.Collection<E> delegate, @CheckForNull java.lang.Object mutex)
java.util.Collection<E> delegate()
delegate in class Synchronized.SynchronizedObjectpublic boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>public void clear()
clear in interface java.util.Collection<E>public boolean contains(@CheckForNull
java.lang.Object o)
contains in interface java.util.Collection<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>public java.util.Iterator<E> iterator()
public java.util.Spliterator<E> spliterator()
public java.util.stream.Stream<E> stream()
stream in interface java.util.Collection<E>public java.util.stream.Stream<E> parallelStream()
parallelStream in interface java.util.Collection<E>public void forEach(java.util.function.Consumer<? super E> action)
forEach in interface java.lang.Iterable<E>public boolean remove(@CheckForNull
java.lang.Object o)
remove in interface java.util.Collection<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>public boolean removeIf(java.util.function.Predicate<? super E> filter)
removeIf in interface java.util.Collection<E>public int size()
size in interface java.util.Collection<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>