All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.moon.core.util.BaseCollectUtil Maven / Gradle / Ivy

package com.moon.core.util;

import com.moon.core.enums.Collects;

import java.util.Collection;

/**
 * @author moonsky
 */
class BaseCollectUtil {

    /*
     * ---------------------------------------------------------------------------------
     * adders
     * ---------------------------------------------------------------------------------
     */

    final static > Collection concat0(C collect, C... cs) {
        Collection collection = Collects.deduceOrDefault(collect, Collects.ArrayLists).apply(collect);
        for (C c : cs) { collection.addAll(c); }
        return collection;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy