rpc.turbo.util.tuple.Tuple Maven / Gradle / Ivy
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);
}
}