Java Collection Add addAll(Iterable iterable, Collection collection)

Here you can find the source of addAll(Iterable iterable, Collection collection)

Description

add All

License

Open Source License

Declaration

public static <T> void addAll(Iterable<T> iterable, Collection<T> collection) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;

public class Main {
    public static <T> void addAll(Iterable<T> iterable, Collection<T> collection) {
        for (T item : iterable)
            collection.add(item);/*from w  ww.  j av a2s  . c  om*/
    }
}

Related

  1. addAll(final Collection collection, final T... objects)
  2. addAll(final Collection collection, final T[] items)
  3. addAll(final T[] source, final Collection destination)
  4. addAll(final TCollection target, final Iterable source)
  5. addAll(Iterable iterable, Collection collection)
  6. addAll(S collection, T... values)
  7. addAll(T coll, Collection other)
  8. addAll(T[] lhs, Collection rhs)
  9. addAllFirst(Collection col, Deque deque)