private static class Synchronized.SynchronizedList<E> extends Synchronized.SynchronizedCollection<E> implements java.util.List<E>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
delegate, mutex
Constructor and Description |
---|
SynchronizedList(java.util.List<E> delegate,
java.lang.Object mutex) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E element) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
(package private) java.util.List<E> |
delegate() |
boolean |
equals(java.lang.Object o) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
void |
replaceAll(java.util.function.UnaryOperator<E> operator) |
E |
set(int index,
E element) |
void |
sort(java.util.Comparator<? super E> c) |
java.util.List<E> |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, forEach, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
SynchronizedList(java.util.List<E> delegate, @CheckForNull java.lang.Object mutex)
java.util.List<E> delegate()
delegate
in class Synchronized.SynchronizedCollection<E>
public boolean addAll(int index, java.util.Collection<? extends E> c)
addAll
in interface java.util.List<E>
public int indexOf(@CheckForNull java.lang.Object o)
indexOf
in interface java.util.List<E>
public int lastIndexOf(@CheckForNull java.lang.Object o)
lastIndexOf
in interface java.util.List<E>
public java.util.ListIterator<E> listIterator()
listIterator
in interface java.util.List<E>
public java.util.ListIterator<E> listIterator(int index)
listIterator
in interface java.util.List<E>
public void replaceAll(java.util.function.UnaryOperator<E> operator)
replaceAll
in interface java.util.List<E>
public void sort(java.util.Comparator<? super E> c)
sort
in interface java.util.List<E>
public java.util.List<E> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<E>
public boolean equals(@CheckForNull java.lang.Object o)