Skip to content

Commit

Permalink
abstract functions as interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrimatti committed Jan 2, 2024
1 parent 3797b1a commit 37f5a96
Show file tree
Hide file tree
Showing 46 changed files with 852 additions and 91 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fi.solita.utils</groupId>
<artifactId>functional-utils</artifactId>
<version>0.12.42</version>
<version>0.12.43</version>
<build>
<resources>
<resource>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fi/solita/utils/functional/Apply.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.io.Serializable;

/**
* Most basic function from {@code T} to {@code R}
* Most basic function (java.util.function.Function<T, R>) from {@code T} to {@code R}
*/
public interface Apply<T,R> extends Serializable {
R apply(T t);
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply10.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 10 arguments
*/
public interface Apply10<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply11.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 11 arguments
*/
public interface Apply11<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply12.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 12 arguments
*/
public interface Apply12<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply13.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 13 arguments
*/
public interface Apply13<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply14.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 14 arguments
*/
public interface Apply14<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply15.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 15 arguments
*/
public interface Apply15<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply16.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 16 arguments
*/
public interface Apply16<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply17.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 17 arguments
*/
public interface Apply17<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply18.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 18 arguments
*/
public interface Apply18<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply19.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 19 arguments
*/
public interface Apply19<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply2.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 2 arguments
*/
public interface Apply2<T1,T2,R> extends Serializable {
R apply(T1 t1, T2 t2);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply20.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 20 arguments
*/
public interface Apply20<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply21.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 21 arguments
*/
public interface Apply21<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply22.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 22 arguments
*/
public interface Apply22<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply23.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 23 arguments
*/
public interface Apply23<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply24.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 24 arguments
*/
public interface Apply24<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply25.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 25 arguments
*/
public interface Apply25<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply26.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 26 arguments
*/
public interface Apply26<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply27.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 27 arguments
*/
public interface Apply27<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply28.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 28 arguments
*/
public interface Apply28<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply29.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 29 arguments
*/
public interface Apply29<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply3.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 3 arguments
*/
public interface Apply3<T1,T2,T3,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply30.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 30 arguments
*/
public interface Apply30<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29, T30 t30);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply31.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 31 arguments
*/
public interface Apply31<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29, T30 t30, T31 t31);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply32.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 32 arguments
*/
public interface Apply32<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29, T30 t30, T31 t31, T32 t32);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply33.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 33 arguments
*/
public interface Apply33<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29, T30 t30, T31 t31, T32 t32, T33 t33);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply34.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 34 arguments
*/
public interface Apply34<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29, T30 t30, T31 t31, T32 t32, T33 t33, T34 t34);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply35.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 35 arguments
*/
public interface Apply35<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,T35,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29, T30 t30, T31 t31, T32 t32, T33 t33, T34 t34, T35 t35);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply36.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 36 arguments
*/
public interface Apply36<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,T35,T36,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29, T30 t30, T31 t31, T32 t32, T33 t33, T34 t34, T35 t35, T36 t36);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply37.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 37 arguments
*/
public interface Apply37<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32,T33,T34,T35,T36,T37,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22, T23 t23, T24 t24, T25 t25, T26 t26, T27 t27, T28 t28, T29 t29, T30 t30, T31 t31, T32 t32, T33 t33, T34 t34, T35 t35, T36 t36, T37 t37);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply4.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 4 arguments
*/
public interface Apply4<T1,T2,T3,T4,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply5.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 5 arguments
*/
public interface Apply5<T1,T2,T3,T4,T5,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply6.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 6 arguments
*/
public interface Apply6<T1,T2,T3,T4,T5,T6,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6);
}
10 changes: 10 additions & 0 deletions src/main/java/fi/solita/utils/functional/Apply7.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fi.solita.utils.functional;

import java.io.Serializable;

/**
* java.util.function.Function but for 7 arguments
*/
public interface Apply7<T1,T2,T3,T4,T5,T6,T7,R> extends Serializable {
R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7);
}
Loading

0 comments on commit 37f5a96

Please sign in to comment.