public class SynchronizedListAccessibleLock<T>
extends java.lang.Object
implements java.util.List<T>
Constructor and Description |
---|
SynchronizedListAccessibleLock(java.util.List<T> listToWrap) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T t) |
boolean |
addAll(java.util.Collection<? extends T> c) |
boolean |
addAll(int index,
java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
T |
get(int index) |
java.lang.Object |
getLock() |
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<T> |
listIterator() |
java.util.ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
java.util.List<T> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<U> U[] |
toArray(U[] a) |
public SynchronizedListAccessibleLock(java.util.List<T> listToWrap)
@NotNull public java.lang.Object getLock()
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
@NotNull public java.lang.Object[] toArray()
@NotNull public <U> U[] toArray(U[] a)
public boolean add(T t)
public boolean remove(java.lang.Object o)
public boolean containsAll(@NotNull java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends T> c)
public boolean addAll(int index, @NotNull java.util.Collection<? extends T> c)
addAll
in interface java.util.List<T>
public boolean removeAll(@NotNull java.util.Collection<?> c)
public boolean retainAll(@NotNull java.util.Collection<?> c)
public void clear()
public boolean equals(java.lang.Object o)
public int hashCode()
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<T>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<T>
@NotNull public java.util.ListIterator<T> listIterator()
listIterator
in interface java.util.List<T>
@NotNull public java.util.ListIterator<T> listIterator(int index)
listIterator
in interface java.util.List<T>