1371 |
|
} |
1372 |
|
} |
1373 |
|
|
1374 |
+ |
/** |
1375 |
+ |
* @throws NullPointerException {@inheritDoc} |
1376 |
+ |
*/ |
1377 |
|
@Override |
1378 |
|
public void forEach(Consumer<? super E> action) { |
1379 |
|
Objects.requireNonNull(action); |
1443 |
|
private int fence; // -1 until used; then one past last index |
1444 |
|
private int expectedModCount; // initialized when fence set |
1445 |
|
|
1446 |
< |
/** Create new spliterator covering the given range */ |
1446 |
> |
/** Creates new spliterator covering the given range. */ |
1447 |
|
ArrayListSpliterator(int origin, int fence, int expectedModCount) { |
1448 |
|
this.index = origin; |
1449 |
|
this.fence = fence; |
1525 |
|
return (bits[i >> 6] & (1L << i)) == 0; |
1526 |
|
} |
1527 |
|
|
1528 |
+ |
/** |
1529 |
+ |
* @throws NullPointerException {@inheritDoc} |
1530 |
+ |
*/ |
1531 |
|
@Override |
1532 |
|
public boolean removeIf(Predicate<? super E> filter) { |
1533 |
|
return removeIf(filter, 0, size); |