Class Iterators

java.lang.Object
com.github.davidmoten.guavamini.Iterators

public final class Iterators extends Object
  • Method Details

    • addAll

      public static <T> boolean addAll(Collection<T> addTo, Iterator<? extends T> iterator)
      Adds all elements in iterator to collection. The iterator will be left exhausted: its hasNext() method will return false.
      Type Parameters:
      T - generic type of collection
      Parameters:
      addTo - collection to add to
      iterator - iterator whose elements will be added to the collection
      Returns:
      true if collection was modified as a result of this operation