Java tutorial
//package com.java2s; import java.util.Collection; public class Main { /** * Adds all elements in the iteration to the given collection. * * @param <T> classe parametre * @param collectionDest the collection to add to, must not be null * @param collectionSrc collection src * @return boolean check */ public static <T> Boolean copyAll(Collection<? super T> collectionDest, Collection<? extends T> collectionSrc) { return collectionSrc == null ? false : collectionDest.addAll(collectionSrc); } }