public class LockList<E> extends ListWrapper<E>
| Constructor and Description |
|---|
LockList(List<E> wraplist) |
LockList(List<E> wraplist,
Lock lock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
get(int index) |
List<E> |
getWrappedList()
Возвращает обвернутый список
|
int |
indexOf(Object o)
Возвращает индекс объекта в коллекции или -1 если не найден
|
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
protected void |
setWrappedList(List<E> list)
Устанавливает обвернутый список
|
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamprotected final Lock lock
public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface List<E>toArray in class ListWrapper<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class ListWrapper<E>public int size()
size in interface Collection<E>size in interface List<E>size in class ListWrapper<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface List<E>retainAll in class ListWrapper<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface List<E>removeAll in class ListWrapper<E>public E remove(int index)
public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>remove in class ListWrapper<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>listIterator in class ListWrapper<E>public ListIterator<E> listIterator()
listIterator in interface List<E>listIterator in class ListWrapper<E>public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in class ListWrapper<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>isEmpty in class ListWrapper<E>public int indexOf(Object o)
ListWrapperpublic E get(int index)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>containsAll in class ListWrapper<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>contains in class ListWrapper<E>public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class ListWrapper<E>public boolean addAll(int index,
Collection<? extends E> c)
public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface List<E>addAll in class ListWrapper<E>public void add(int index,
E element)
public boolean add(E e)
add in interface Collection<E>add in interface List<E>add in class ListWrapper<E>protected void setWrappedList(List<E> list)
ListWrappersetWrappedList in class ListWrapper<E>list - списокpublic List<E> getWrappedList()
ListWrappergetWrappedList in class ListWrapper<E>Copyright © 2017. All rights reserved.