1054 |
|
throw new IndexOutOfBoundsException("Index: "+index); |
1055 |
|
return new VectorIterator(index); |
1056 |
|
} |
1057 |
< |
|
1057 |
> |
|
1058 |
|
/** |
1059 |
|
* Returns an iterator over the elements in this list in proper sequence. |
1060 |
|
* |
1105 |
|
lastRet = i; |
1106 |
|
cursor = i + 1; |
1107 |
|
return e; |
1108 |
< |
} catch (IndexOutOfBoundsException fallthrough) { |
1108 |
> |
} catch (IndexOutOfBoundsException fallthrough) { |
1109 |
|
} |
1110 |
|
} |
1111 |
|
} |
1126 |
|
lastRet = i; |
1127 |
|
cursor = i; |
1128 |
|
return e; |
1129 |
< |
} catch (IndexOutOfBoundsException fallthrough) { |
1129 |
> |
} catch (IndexOutOfBoundsException fallthrough) { |
1130 |
|
} |
1131 |
|
} |
1132 |
|
} |
1140 |
|
if (lastRet < 0) |
1141 |
|
throw new IllegalStateException(); |
1142 |
|
synchronized(Vector.this) { |
1143 |
< |
if (modCount != expectedModCount) |
1143 |
> |
if (modCount != expectedModCount) |
1144 |
|
throw new ConcurrentModificationException(); |
1145 |
|
Vector.this.remove(lastRet); |
1146 |
|
if (lastRet < cursor) |
1154 |
|
if (lastRet < 0) |
1155 |
|
throw new IllegalStateException(); |
1156 |
|
synchronized(Vector.this) { |
1157 |
< |
if (modCount != expectedModCount) |
1157 |
> |
if (modCount != expectedModCount) |
1158 |
|
throw new ConcurrentModificationException(); |
1159 |
|
Vector.this.set(lastRet, e); |
1160 |
|
expectedModCount = modCount; |
1163 |
|
|
1164 |
|
public void add(E e) { |
1165 |
|
synchronized(Vector.this) { |
1166 |
< |
if (modCount != expectedModCount) |
1166 |
> |
if (modCount != expectedModCount) |
1167 |
|
throw new ConcurrentModificationException(); |
1168 |
|
Vector.this.add(cursor++, e); |
1169 |
|
lastRet = -1; |