Package com.github.davidmoten.guavamini
Class Iterators
java.lang.Object
com.github.davidmoten.guavamini.Iterators
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanaddAll(Collection<T> addTo, Iterator<? extends T> iterator) Adds all elements initeratortocollection.
-
Method Details
-
addAll
Adds all elements initeratortocollection. 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:
trueifcollectionwas modified as a result of this operation
-