public Object get(int index) { synchronized (lock) { return getList().get(index); } }
public Object remove(int index) { synchronized (lock) { return getList().remove(index); } }
public Object set(int index, Object object) { synchronized (lock) { return getList().set(index, object); } }
public boolean addAll(int index, Collection coll) { synchronized (lock) { return getList().addAll(index, coll); } }
/** * Iterators must be manually synchronized. * <pre> * synchronized (coll) { * ListIterator it = coll.listIterator(3); * // do stuff with iterator * } * * @return an iterator that must be manually synchronized on the collection */ public ListIterator listIterator(int index) { return getList().listIterator(index); }
public int lastIndexOf(Object object) { synchronized (lock) { return getList().lastIndexOf(object); } }
public void add(int index, Object object) { synchronized (lock) { getList().add(index, object); } }
public int indexOf(Object object) { synchronized (lock) { return getList().indexOf(object); } }
/** * Iterators must be manually synchronized. * <pre> * synchronized (coll) { * ListIterator it = coll.listIterator(); * // do stuff with iterator * } * * @return an iterator that must be manually synchronized on the collection */ public ListIterator listIterator() { return getList().listIterator(); }
public void add(int index, Object object) { synchronized (lock) { getList().add(index, object); } }
public Object remove(int index) { synchronized (lock) { return getList().remove(index); } }
public boolean addAll(int index, Collection coll) { synchronized (lock) { return getList().addAll(index, coll); } }
public Object set(int index, Object object) { synchronized (lock) { return getList().set(index, object); } }
/** * Iterators must be manually synchronized. * <pre> * synchronized (coll) { * ListIterator it = coll.listIterator(); * // do stuff with iterator * } * * @return an iterator that must be manually synchronized on the collection */ public ListIterator listIterator() { return getList().listIterator(); }
public Object get(int index) { synchronized (lock) { return getList().get(index); } }
public int lastIndexOf(Object object) { synchronized (lock) { return getList().lastIndexOf(object); } }
public int indexOf(Object object) { synchronized (lock) { return getList().indexOf(object); } }
/** * Iterators must be manually synchronized. * <pre> * synchronized (coll) { * ListIterator it = coll.listIterator(3); * // do stuff with iterator * } * * @return an iterator that must be manually synchronized on the collection */ public ListIterator listIterator(int index) { return getList().listIterator(index); }
public List subList(int fromIndex, int toIndex) { synchronized (lock) { List list = getList().subList(fromIndex, toIndex); // the lock is passed into the constructor here to ensure that the sublist is // synchronized on the same lock as the parent list return new SynchronizedList(list, lock); } }
public List subList(int fromIndex, int toIndex) { synchronized (lock) { List list = getList().subList(fromIndex, toIndex); // the lock is passed into the constructor here to ensure that the sublist is // synchronized on the same lock as the parent list return new SynchronizedList(list, lock); } }