equal
deleted
inserted
replaced
1321 throw new ConcurrentModificationException(); |
1321 throw new ConcurrentModificationException(); |
1322 } |
1322 } |
1323 modCount++; |
1323 modCount++; |
1324 } |
1324 } |
1325 |
1325 |
|
1326 /** |
|
1327 * Creates a <em><a href="Spliterator.html#binding">late-binding</a></em> |
|
1328 * and <em>fail-fast</em> {@link Spliterator} over the elements in this |
|
1329 * list. |
|
1330 * |
|
1331 * <p>The {@code Spliterator} reports {@link Spliterator#SIZED}, |
|
1332 * {@link Spliterator#SUBSIZED}, and {@link Spliterator#ORDERED}. |
|
1333 * Overriding implementations should document the reporting of additional |
|
1334 * characteristic values. |
|
1335 * |
|
1336 * @return a {@code Spliterator} over the elements in this list |
|
1337 * @since 1.8 |
|
1338 */ |
1326 @Override |
1339 @Override |
1327 public Spliterator<E> spliterator() { |
1340 public Spliterator<E> spliterator() { |
1328 return new VectorSpliterator<>(this, null, 0, -1, 0); |
1341 return new VectorSpliterator<>(this, null, 0, -1, 0); |
1329 } |
1342 } |
1330 |
1343 |