public class Iterators
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
addAll(java.util.Collection<T> collection,
java.util.Iterator<? extends T> iterator)
Adds all the elements in the source
iterator to the target
collection. |
public static <T> boolean addAll(java.util.Collection<T> collection,
java.util.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 © 2010 - 2023 Adobe. All Rights Reserved