Java Collection Add addAll(final Collection collection, final T[] items)

Here you can find the source of addAll(final Collection collection, final T[] items)

Description

add All

License

LGPL

Declaration

public static <T> Collection<T> addAll(final Collection<T> collection, final T[] items) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.util.*;

public class Main {
    public static <T> Collection<T> addAll(final Collection<T> collection, final T[] items) {
        if (null != items) {
            if (null != collection) {
                Collections.addAll(collection, items);
            }/*w  ww.j  ava  2  s. c  o m*/
        }
        return collection;
    }
}

Related

  1. addAll(final Collection thingsToBeAddedTo, final Collection thingsToAdd)
  2. addAll(final Collection coll, final T... objs)
  3. addAll(final Collection collection, final T... elements)
  4. addAll(final Collection collection, final T... objects)
  5. addAll(final Collection collection, final T... objects)
  6. addAll(final T[] source, final Collection destination)
  7. addAll(final TCollection target, final Iterable source)
  8. addAll(Iterable iterable, Collection collection)
  9. addAll(Iterable iterable, Collection collection)