Java Collection Add addAll(Collection target, Iterable source)

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

Description

add All

License

Apache License

Declaration

public static <T> void addAll(Collection<T> target, Iterable<? extends T> source) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.util.Collection;

public class Main {
    public static <T> void addAll(Collection<T> target, Iterable<? extends T> source) {
        for (T t : source) {
            target.add(t);//www.  j  av a  2  s.  c o m
        }
    }
}

Related

  1. addAll(Collection dest, T... elements)
  2. addAll(Collection intoCollection, Collection fromCollection)
  3. addAll(Collection left, Collection right)
  4. addAll(Collection t1, Iterable t2)
  5. addAll(Collection target, Collection source)
  6. addAll(Collection target, S[] source)
  7. addAll(final Collection coll, final Object[] array)
  8. addAll(final Collection newItems, final Collection existingItems)
  9. addAll(final Collection c, final E... array)