Skip to content

Commit

Permalink
refactor: New system
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed May 23, 2024
1 parent d0b6e11 commit 871949b
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 159 deletions.
34 changes: 34 additions & 0 deletions src/main/java/net/zepalesque/zenith/util/lambda/Consumers.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package net.zepalesque.zenith.util.lambda;

public class Consumers {

public static interface C3<T1, T2, T3> {

void accept(T1 t1, T2 t2, T3 t3);
}

public static interface C4<T1, T2, T3, T4> {

void accept(T1 t1, T2 t2, T3 t3, T4 t4);
}

public static interface C5<T1, T2, T3, T4, T5> {

void accept(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5);
}

public static interface C6<T1, T2, T3, T4, T5, T6> {

void accept(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6);
}

public static interface C7<T1, T2, T3, T4, T5, T6, T7> {

void accept(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7);
}

public static interface C8<T1, T2, T3, T4, T5, T6, T7, T8> {

void accept(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8);
}
}
34 changes: 34 additions & 0 deletions src/main/java/net/zepalesque/zenith/util/lambda/Functions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package net.zepalesque.zenith.util.lambda;

public class Functions {

public static interface F3<T1, T2, T3, R> {

R accept(T1 t1, T2 t2, T3 t3);
}

public static interface F4<T1, T2, T3, T4, R> {

R accept(T1 t1, T2 t2, T3 t3, T4 t4);
}

public static interface F5<T1, T2, T3, T4, T5, R> {

R accept(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5);
}

public static interface F6<T1, T2, T3, T4, T5, T6, R> {

R accept(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6);
}

public static interface F7<T1, T2, T3, T4, T5, T6, T7, R> {

R accept(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7);
}

public static interface F8<T1, T2, T3, T4, T5, T6, T7, T8, R> {

R accept(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8);
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 871949b

Please sign in to comment.