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

com.aol.cyclops.javaslang.FromJooqLambda Maven / Gradle / Ivy

There is a newer version: 8.4.2
Show newest version
package com.aol.cyclops.javaslang;

import javaslang.Tuple0;
import javaslang.Tuple1;
import javaslang.Tuple2;
import javaslang.Tuple3;
import javaslang.Tuple4;
import javaslang.Tuple5;
import javaslang.Tuple6;
import javaslang.Tuple7;
import javaslang.Tuple8;

import org.jooq.lambda.function.Function1;
import org.jooq.lambda.function.Function2;
import org.jooq.lambda.function.Function3;
import org.jooq.lambda.function.Function4;
import org.jooq.lambda.function.Function5;
import org.jooq.lambda.function.Function6;
import org.jooq.lambda.function.Function7;
import org.jooq.lambda.function.Function8;

public class FromJooqLambda{
	public static   Function1 f1(org.jooq.lambda.function.Function1 fn){
		return (t) -> fn.apply(t);
	}
	public static   Function2 f2(org.jooq.lambda.function.Function2 fn){
		return (t,x) -> fn.apply(t,x);
	}
	public static   Function3 f3(org.jooq.lambda.function.Function3 fn){
		return (t1,t2,t3) -> fn.apply(t1,t2,t3);
	}
	public static   Function4 f4(org.jooq.lambda.function.Function4 fn){
		return (t1,t2,t3,t4) -> fn.apply(t1,t2,t3,t4);
	}
	public static   Function5 f5(org.jooq.lambda.function.Function5 fn){
		return (t1,t2,t3,t4,t5) -> fn.apply(t1,t2,t3,t4,t5);
	}
	public static   Function6 f6(org.jooq.lambda.function.Function6 fn){
		return (t1,t2,t3,t4,t5,t6) -> fn.apply(t1,t2,t3,t4,t5,t6);
	}
	public static   Function7 f7(org.jooq.lambda.function.Function7 fn){
		return (t1,t2,t3,t4,t5,t6,t7) -> fn.apply(t1,t2,t3,t4,t5,t6,t7);
	}
	public static   Function8 f8(org.jooq.lambda.function.Function8 fn){
		return (t1,t2,t3,t4,t5,t6,t7,t8) -> fn.apply(t1,t2,t3,t4,t5,t6,t7,t8);
	}
	public static  Tuple0 tuple(org.jooq.lambda.tuple.Tuple0 t){
		return Tuple0.instance();
	}
	public static  Tuple1 tuple(org.jooq.lambda.tuple.Tuple1 t){
		return new Tuple1(t.v1);
	}
	public static  Tuple2 tuple(org.jooq.lambda.tuple.Tuple2 t){
		return new Tuple2(t.v1,t.v2);
	}
	public static  Tuple3 tuple(org.jooq.lambda.tuple.Tuple3 t){
		return new Tuple3(t.v1,t.v2,t.v3);
	}
	public static  Tuple4 tuple(org.jooq.lambda.tuple.Tuple4 t){
		return new Tuple4(t.v1,t.v2,t.v3,t.v4);
	}
	public static  Tuple5 tuple(org.jooq.lambda.tuple.Tuple5 t){
		return new Tuple5(t.v1,t.v2,t.v3,t.v4,t.v5);
	}
	public static  Tuple6 tuple(org.jooq.lambda.tuple.Tuple6 t){
		return new Tuple6(t.v1,t.v2,t.v3,t.v4,t.v5,t.v6);
	}
	public static  Tuple7 tuple(org.jooq.lambda.tuple.Tuple7 t){
		return new Tuple7(t.v1,t.v2,t.v3,t.v4,t.v5,t.v6,t.v7);
	}
	public static  Tuple8 tuple(org.jooq.lambda.tuple.Tuple8 t){
		return new Tuple8(t.v1,t.v2,t.v3,t.v4,t.v5,t.v6,t.v7,t.v8);
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy