Java List Copy copyList(List master, List slave)

Here you can find the source of copyList(List master, List slave)

Description

Copia il contenuto della prima lista (master) nella seconda (slave).

License

Open Source License

Parameter

Parameter Description
master a parameter
slave a parameter

Declaration

public static <T> List<T> copyList(List<T> master, List<T> slave) 

Method Source Code

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

import java.util.List;

public class Main {
    /**/*from   w ww .  j a  va2  s .  co m*/
     * Copia il contenuto della prima lista (master) nella seconda (slave).
     * 
     * @param master
     * @param slave
     * @return
     */
    public static <T> List<T> copyList(List<T> master, List<T> slave) {
        slave.clear();
        slave.addAll(slave);
        return slave;
    }
}

Related

  1. copyList(List src)
  2. copyList(List list)
  3. copyList(List list)
  4. copyList(List list)
  5. copyList(List list)
  6. copyList(List original)
  7. copyList(Object object)
  8. copyListOnlySpecified(List list, int[] indexes)
  9. copyListRaw(List master, List slave)