de.jaggl.sqlbuilder.utils.ArrayUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlbuilder-core Show documentation
Show all versions of sqlbuilder-core Show documentation
A Java-Library to build SQL-Statements
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;
}
}