Java Collection Add addAll(Collection col, Iterable iterable)

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

Description

add All

License

Open Source License

Declaration

public static <T> boolean addAll(Collection<? super T> col, Iterable<? extends T> iterable) 

Method Source Code

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

import java.util.Collection;

public class Main {
    public static <T> boolean addAll(Collection<? super T> col, Iterable<? extends T> iterable) {
        boolean celkovaZmena = false;
        for (T tt : iterable) {
            boolean zmena = col.add(tt);
            celkovaZmena = celkovaZmena || zmena;
        }//  www  .  j  a v a2 s . c  o m
        return celkovaZmena;
    }
}

Related

  1. addAll(Collection collection, Iterator iterator)
  2. addAll(Collection collection, Object[] array)
  3. addAll(Collection collection, Object[] array)
  4. addAll(Collection ret, Object[] elements)
  5. addAll(Collection source, Collection target)
  6. addAll(Collection collection, Iterable toAdd)
  7. addAll(Collection addTo, Iterable elementsToAdd)
  8. addAll(Collection c, Iterable elts)
  9. addAll(Collection c, T... array)