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

de.jaggl.sqlbuilder.utils.ArrayUtils Maven / Gradle / Ivy

There is a newer version: 2.7.2
Show newest version
package de.jaggl.sqlbuilder.utils;

import static java.util.Arrays.asList;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Martin Schumacher
 *
 * @since 2.0.0
 */
public interface ArrayUtils
{
    public static  List toList(T value, T[] furtherValues)
    {
        List list = new ArrayList<>(furtherValues.length + 1);
        list.add(value);
        list.addAll(asList(furtherValues));
        return list;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy