public ListIterator<T> listIterator(int index) {
if (!lock.isWriteLockedByCurrentThread()) throw new RuntimeException(
"Iterators break encapsulation and ignore locking. Write-lock first");
return list.listIterator(index);
}
public ListIterator<T> listIterator(int index) {
if (!lock.isWriteLockedByCurrentThread()) throw new RuntimeException(
"Iterators break encapsulation and ignore locking. Write-lock first");
return list.listIterator(index);
}