Java List Value Add All addAll(final List list, final T... elements)

Here you can find the source of addAll(final List list, final T... elements)

Description

add All

License

Open Source License

Declaration

public static <T> void addAll(final List<T> list, final T... elements) 

Method Source Code


//package com.java2s;
// ProjectForge is dual-licensed.

import java.util.List;

public class Main {
    public static <T> void addAll(final List<T> list, final T... elements) {
        for (final T element : elements) {
            list.add(element);//from w w  w. j a v a2 s  . co m
        }
    }
}

Related

  1. addAll(ArrayList list, T[] array)
  2. addAll(final List list, final E... values)
  3. addAll(final List firstList, final List secondList)
  4. addAll(int index, List list, T... array)
  5. addAll(List dest, List src)
  6. addAll(List fromList, List toList)
  7. addAll(List list, E[] elements)