Java List Clone clone(List in)

Here you can find the source of clone(List in)

Description

clone

License

Open Source License

Declaration

public static <E extends Object> List<E> clone(List<E> in) 

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 <E extends Object> List<E> clone(List<E> in) {
        ArrayList<E> out = new ArrayList<E>(in.size());
        out.addAll(in);/*from   w w  w . java2  s.co m*/
        return out;
    }
}

Related

  1. clone(final List list)
  2. clone(List> doc)
  3. clone(List list)
  4. clone(List list)
  5. clone(List input)

  6. HOME | Copyright © www.java2s.com 2016