92 |
|
* |
93 |
|
* @author Josh Bloch |
94 |
|
* @author Neal Gafter |
95 |
– |
* @version %I%, %G% |
95 |
|
* @see Collection |
96 |
|
* @see List |
97 |
|
* @see LinkedList |
892 |
|
private final AbstractList<E> parent; |
893 |
|
private final int parentOffset; |
894 |
|
private final int offset; |
895 |
< |
private int size; |
895 |
> |
int size; |
896 |
|
|
897 |
|
SubList(AbstractList<E> parent, |
898 |
|
int offset, int fromIndex, int toIndex) { |
971 |
|
public ListIterator<E> listIterator(final int index) { |
972 |
|
checkForComodification(); |
973 |
|
rangeCheckForAdd(index); |
974 |
+ |
final int offset = this.offset; |
975 |
|
|
976 |
|
return new ListIterator<E>() { |
977 |
|
int cursor = index; |