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

jedi.tuple.Tuples Maven / Gradle / Ivy

The newest version!
package jedi.tuple;

public final class Tuples {

	private Tuples() {}

	public static  Tuple2 tuple2(A a, B b) { return pair(a,b); }
	public static  Tuple2 pair(A a, B b) { return new Tuple2(a,b); }

	public static  Tuple3 tuple3(A a, B b, C c) { return triple(a,b,c); }
	public static  Tuple3 triple(A a, B b, C c) { return new Tuple3(a,b,c); };

	public static  Tuple4 tuple4(A a, B b, C c, D d) { return quad(a,b,c,d); }
	public static  Tuple4 quad(A a, B b, C c, D d) { return new Tuple4(a,b,c,d); };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy