| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
addAll(Collection<T> collection,
Iterator<? extends T> iterator)
Adds all the elements in the source
iterator to the target
collection. |
public static <T> boolean addAll(Collection<T> collection, Iterator<? extends T> iterator)
iterator to the target
collection.
When this method returns, the iterator will be "empty": its
hasNext() method returns false.
T - type of the elements contained inside the collectioncollection - target collectioniterator - sourcetrue if the target collection was modified as a
result of this operationCopyright © 2020 The Apache Software Foundation. All rights reserved.