Java List Clone cloneList(List xData)

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

Description

clone List

License

Apache License

Declaration

public static List<double[]> cloneList(List<double[]> xData) 

Method Source Code


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

import java.util.ArrayList;

import java.util.List;

public class Main {
    public static List<double[]> cloneList(List<double[]> xData) {
        List<double[]> result = new ArrayList<double[]>();
        for (double[] currArr : xData) {
            result.add(currArr.clone());
        }/*from   w w  w  . j av  a2  s .  c om*/
        return result;
    }
}

Related

  1. CloneList(final Collection list)
  2. cloneList(final List l, final int n)
  3. cloneList(List aList)
  4. cloneList(List l)
  5. cloneList(List sOriginal)
  6. cloneList(List curList)
  7. cloneList(List l)
  8. cloneListExcludingAttribute(String attribute, List attributes)
  9. cloneListOfStrings(List list)