final class Iterators extends Object
com.google.common.collect.Iterators.| Modifier | Constructor and Description |
|---|---|
private |
Iterators()
Hidden for pure static factory.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
addAll(Collection<T> addTo,
Iterator<? extends T> iterator)
Adds all elements in
iterator to collection. |
public static <T> boolean addAll(Collection<T> addTo, Iterator<? extends T> iterator)
iterator to collection. The iterator will be left exhausted: its
hasNext() method will return false.T - type of elementsaddTo - must not be nulliterator - must not be nullCopyright © 2014 Sven Strittmatter. All Rights Reserved.