com.aol.cyclops.functionaljava.FromJooqLambda Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cyclops-functionaljava Show documentation
Show all versions of cyclops-functionaljava Show documentation
Converters and Comprehenders for FunctionalJava
package com.aol.cyclops.functionaljava;
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;
import fj.F;
import fj.F2;
import fj.F3;
import fj.F4;
import fj.F5;
import fj.F6;
import fj.F7;
import fj.F8;
import fj.P;
import fj.P1;
import fj.P2;
import fj.P3;
import fj.P4;
import fj.P5;
import fj.P6;
import fj.P7;
import fj.P8;
public class FromJooqLambda {
public static F f1(Function1 fn) {
return (t) -> fn.apply(t);
}
public static F2 f2(Function2 fn) {
return (t, x) -> fn.apply(t, x);
}
public static F3 f3(Function3 fn) {
return (t1, t2, t3) -> fn.apply(t1, t2, t3);
}
public static F4 f4(Function4 fn) {
return (t1, t2, t3, t4) -> fn.apply(t1, t2, t3, t4);
}
public static F5 f5(Function5 fn) {
return (t1, t2, t3, t4, t5) -> fn.apply(t1, t2, t3, t4, t5);
}
public static F6 f6(
Function6 fn) {
return (t1, t2, t3, t4, t5, t6) -> fn.apply(t1, t2, t3, t4, t5, t6);
}
public static F7 f7(
Function7 fn) {
return (t1, t2, t3, t4, t5, t6, t7) -> fn.apply(t1, t2, t3, t4, t5, t6, t7);
}
public static F8 f8(
Function8 fn) {
return (t1, t2, t3, t4, t5, t6, t7, t8) -> fn.apply(t1, t2, t3, t4, t5, t6, t7, t8);
}
public static P1 tuple(org.jooq.lambda.tuple.Tuple1 t) {
return P.lazy(() -> t.v1);
}
public static P2 tuple(org.jooq.lambda.tuple.Tuple2 t) {
return P.lazy(P.lazy(() -> t.v1), P.lazy(() -> t.v2));
}
public static P3 tuple(org.jooq.lambda.tuple.Tuple3 t) {
return P.p(t.v1, t.v2, t.v3);
}
public static P4 tuple(org.jooq.lambda.tuple.Tuple4 t) {
return P.p(t.v1, t.v2, t.v3, t.v4);
}
public static P5 tuple(
org.jooq.lambda.tuple.Tuple5 t) {
return P.p(t.v1, t.v2, t.v3, t.v4, t.v5);
}
public static P6 tuple(
org.jooq.lambda.tuple.Tuple6 t) {
return P.p(t.v1, t.v2, t.v3, t.v4, t.v5, t.v6);
}
public static P7 tuple(
org.jooq.lambda.tuple.Tuple7 t) {
return P.p(t.v1, t.v2, t.v3, t.v4, t.v5, t.v6, t.v7);
}
public static P8 tuple(
org.jooq.lambda.tuple.Tuple8 t) {
return P.p(t.v1, t.v2, t.v3, t.v4, t.v5, t.v6, t.v7, t.v8);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy