Java List Merge mergeLists(List listA, List listB, List listC)

Here you can find the source of mergeLists(List listA, List listB, List listC)

Description

merge Lists

License

Open Source License

Declaration

public static <T> List<T> mergeLists(List<T> listA, List<T> listB, List<T> listC) 

Method Source Code


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

import java.util.ArrayList;

import java.util.Collections;
import java.util.List;

public class Main {
    public static <T> List<T> mergeLists(List<T> listA, List<T> listB, List<T> listC) {
        List<T> returnList = new ArrayList<T>(listA);
        returnList.addAll(listB);/*from   ww  w . j  a v a2  s.  c  o  m*/
        returnList.addAll(listC);
        return Collections.unmodifiableList(returnList);
    }
}

Related

  1. mergeListNoDuplicate(List one, List two)
  2. mergeLists(final T... array)
  3. mergeLists(List baseList, List newItems)
  4. mergeLists(List copyTo, List copyFrom)
  5. mergeLists(List dest, List inserts)
  6. mergeLists(Object oldValue, Object newValue, Object newValue2)
  7. mergeOperations(List> list1, Set ops2)
  8. mergeOrdered( List base, List elems)
  9. mergepath(List pieces, String separator)