# | Line 775 | Line 775 | public class CopyOnWriteArrayList<E> | |
---|---|---|
775 | } | |
776 | } | |
777 | ||
778 | + | /** |
779 | + | * @throws NullPointerException {@inheritDoc} |
780 | + | */ |
781 | public void forEach(Consumer<? super E> action) { | |
782 | if (action == null) throw new NullPointerException(); | |
783 | for (Object x : getArray()) { | |
# | Line 783 | Line 786 | public class CopyOnWriteArrayList<E> | |
786 | } | |
787 | } | |
788 | ||
789 | + | /** |
790 | + | * @throws NullPointerException {@inheritDoc} |
791 | + | */ |
792 | public boolean removeIf(Predicate<? super E> filter) { | |
793 | if (filter == null) throw new NullPointerException(); | |
794 | return bulkRemove(filter); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |