Java List Clone cloneList(List l)

Here you can find the source of cloneList(List l)

Description

clone List

License

Apache License

Declaration

public static <T> List<T> cloneList(List<T> l) 

Method Source Code

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

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

public class Main {
    public static <T> List<T> cloneList(List<T> l) {
        return new ArrayList<>(l);
    }//from w w w  .j a  v a2  s. c om
}

Related

  1. cloneList(List aList)
  2. cloneList(List l)
  3. cloneList(List sOriginal)
  4. cloneList(List xData)
  5. cloneList(List curList)
  6. cloneListExcludingAttribute(String attribute, List attributes)
  7. cloneListOfStrings(List list)
  8. cloneMerchantList(List merchantIDs)
  9. cloneProbabilities( List targetProbs)