Java List Join joinLists(List... list)

Here you can find the source of joinLists(List... list)

Description

join Lists

License

Open Source License

Declaration

public static <T> List<T> joinLists(List<T>... list) 

Method Source Code


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

import java.util.ArrayList;
import java.util.List;

public class Main {

    public static <T> List<T> joinLists(List<T>... list) {
        List<T> result = new ArrayList<T>();
        for (List<T> list2 : list) {
            result.addAll(list2);/*  ww  w  .j a va  2 s .c  o m*/
        }
        return result;
    }
}

Related

  1. joinList(List list, String separator)
  2. joinList(List parts, String sep)
  3. joinList(String separater, List list)
  4. joinLists( final List> lists)
  5. joinLists(List A, List B, double epsilon)
  6. joinListToString(List lsStr, String sSeparator)
  7. joinLong(List lst, String prefix)
  8. joinNiceString(List strings)
  9. joinRecords(List first, List second, String key)