Java List Copy copyInto(List source, List dest)

Here you can find the source of copyInto(List source, List dest)

Description

copy Into

License

Open Source License

Declaration

public static <T> void copyInto(List<T> source, List<T> dest) 

Method Source Code

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

import java.util.List;

public class Main {
    public static <T> void copyInto(List<T> source, List<T> dest) {
        dest.clear();/*  ww w. j a  va2 s  . c  om*/
        for (T obj : source)
            dest.add(obj);
    }
}

Related

  1. copyAndRemove(final List in, final String remove)
  2. copyAndSet(final Map> in, final String key, final String value)
  3. copyArrayToList(Object[] input, List output)
  4. copyFirst(List list, int count)
  5. copyIntArray(List li)
  6. copyList(Collection c)
  7. copyList(Collection list)
  8. copyList(final List source, final List destination)
  9. copyList(final List list)