Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
    }
}