Java List Value Add All addAll(List src, T... args)

Here you can find the source of addAll(List src, T... args)

Description

add All

License

Apache License

Declaration

@SafeVarargs
public static <T> List<T> addAll(List<T> src, T... args) 

Method Source Code

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

import java.util.List;

public class Main {

    @SafeVarargs
    public static <T> List<T> addAll(List<T> src, T... args) {
        if (src == null) {
            return null;
        }//from   w  ww. ja v a2s  .  co m

        for (T t : args) {
            src.add(t);
        }

        return src;
    }
}

Related

  1. addAll(List dest, List src)
  2. addAll(List fromList, List toList)
  3. addAll(List list, E[] elements)
  4. addAll(List list, String[] array)
  5. addAll(List list, T... array)
  6. addAll(List xs, Collection adds)
  7. addAll(Object[] array, List list)
  8. addAll(T[] array, List list)
  9. addAllTo(List procArgs, String[] args)