public class PSynchronizedList<E> extends Object implements List<E>
Constructor and Description |
---|
PSynchronizedList(List<E> list,
Object mutex) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> collection) |
boolean |
addAll(int index,
Collection<? extends E> collection) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
boolean |
equals(Object object) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object object) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object object) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
static PSynchronizedList |
newInstance(IInstanceFactory instanceFactory,
List list,
Object mutex) |
E |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
public static PSynchronizedList newInstance(IInstanceFactory instanceFactory, List list, Object mutex)
public boolean add(E element)
public boolean addAll(Collection<? extends E> collection)
public boolean addAll(int index, Collection<? extends E> collection)
public void clear()
public boolean contains(Object object)
public boolean containsAll(Collection<?> collection)
containsAll
in interface Collection<E>
containsAll
in interface List<E>
public boolean equals(Object object)
public int hashCode()
public boolean isEmpty()
public int lastIndexOf(Object object)
lastIndexOf
in interface List<E>
public ListIterator<E> listIterator()
listIterator
in interface List<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
public boolean remove(Object object)
public boolean removeAll(Collection<?> collection)
public boolean retainAll(Collection<?> collection)
public int size()
public Object[] toArray()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.