| Modifier and Type | Method and Description | 
|---|---|
| static <T> boolean | addAll(Collection<T> collection,
      Iterator<? extends T> iterator)Adds all the elements in the source  iteratorto the targetcollection. | 
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 © 2018 The Apache Software Foundation. All rights reserved.