Package com.github.davidmoten.guavamini
Class Iterators
java.lang.Object
com.github.davidmoten.guavamini.Iterators
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
addAll
(Collection<T> addTo, Iterator<? extends T> iterator) Adds all elements initerator
tocollection
.
-
Method Details
-
addAll
Adds all elements initerator
tocollection
. The iterator will be left exhausted: itshasNext()
method will returnfalse
.- Type Parameters:
T
- generic type of collection- Parameters:
addTo
- collection to add toiterator
- iterator whose elements will be added to the collection- Returns:
true
ifcollection
was modified as a result of this operation
-