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

net.jqwik.api.Table Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
package net.jqwik.api;

import java.util.*;
import java.util.stream.*;

import org.apiguardian.api.*;

import net.jqwik.api.Tuple.*;

import static org.apiguardian.api.API.Status.*;

@API(status = MAINTAINED, since = "1.0")
public class Table {
	@SafeVarargs
	public static  Iterable> of(E... elements) {
		return Arrays.stream(elements)
				 .map(Tuple::of)
				 .collect(Collectors.toList());
	}

	@SafeVarargs
	public static  Iterable> of(Tuple1... tuples) {
		return Arrays.asList(tuples);
	}

	@SafeVarargs
	public static  Iterable> of(Tuple2... tuples) {
		return Arrays.asList(tuples);
	}

	@SafeVarargs
	public static  Iterable> of(Tuple3... tuples) {
		return Arrays.asList(tuples);
	}

	@SafeVarargs
	public static  Iterable> of(Tuple4... tuples) {
		return Arrays.asList(tuples);
	}

	@SafeVarargs
	public static  Iterable> of(Tuple5... tuples) {
		return Arrays.asList(tuples);
	}

	@SafeVarargs
	public static  Iterable> of(Tuple6... tuples) {
		return Arrays.asList(tuples);
	}

	@SafeVarargs
	public static  Iterable> of(Tuple7... tuples) {
		return Arrays.asList(tuples);
	}

	@SafeVarargs
	public static  Iterable> of(Tuple8... tuples) {
		return Arrays.asList(tuples);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy