public class Iterables
extends java.lang.Object
Iterable. Except as noted, each method has a corresponding
Iterator-based method in the Iterators class.
Performance notes: Unless otherwise noted, all of the iterables produced in this class are lazy, which means that their iterators only advance the backing iteration when absolutely necessary.
See the Guava User Guide article on
Iterables.
| Constructor and Description |
|---|
Iterables() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
addAll(java.util.Collection<T> addTo,
java.lang.Iterable<? extends T> elementsToAdd)
Adds all elements in
iterable to collection. |