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

rpc.turbo.util.tuple.Tuple Maven / Gradle / Ivy

There is a newer version: 0.0.9
Show newest version
package rpc.turbo.util.tuple;

public final class Tuple {
	private Tuple() {}
	
	public static  Tuple1 tuple(T1 _1) {
		return new Tuple1(_1);
	}

	public static  Tuple2 tuple(T1 _1, T2 _2) {
		return new Tuple2(_1, _2);
	}

	public static  Tuple3 tuple(T1 _1, T2 _2, T3 _3) {
		return new Tuple3(_1, _2, _3);
	}

	public static  Tuple4 tuple(T1 _1, T2 _2, T3 _3, T4 _4) {
		return new Tuple4(_1, _2, _3, _4);
	}

	public static  Tuple5 tuple(T1 _1, T2 _2, T3 _3, T4 _4, T5 _5) {
		return new Tuple5(_1, _2, _3, _4, _5);
	}

	public static  Tuple6 tuple(T1 _1, T2 _2, T3 _3, T4 _4, T5 _5, T6 _6) {
		return new Tuple6(_1, _2, _3, _4, _5, _6);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy