code: public static <E> void addAll(Collection<E> pCollection, Iterator<? extends E> pIterator) {
          while (pIterator.hasNext()) {
              pCollection.add(pIterator.next());
          }
      }
docs: Adds all elements of the iterator to the collection.
  
  @param pCollection the collection
  @param pIterator the elements to add
  
  @throws UnsupportedOperationException if {@code add} is not supported by
  the given collection.
  @throws ClassCastException class of the specified element prevents it
  from being added to this collection.
  @throws NullPointerException if the specified element is {@code null} and this
  collection does not support {@code null} elements.
  @throws IllegalArgumentException some aspect of this element prevents
  it from being added to this collection.