-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a206f6
commit d0b6e11
Showing
9 changed files
with
176 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/net/zepalesque/zenith/util/lambda/consumer/HexConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package net.zepalesque.zenith.util.lambda.consumer; | ||
|
||
/** | ||
* An operation that accepts six upper arguments and returns no result. | ||
* | ||
* @param <K> type of the first argument | ||
* @param <V> type of the second argument | ||
* @param <S> type of the third argument | ||
* @param <T> type of the fourth argument | ||
* @param <R> type of the fifth argument | ||
* @param <Y> type of the sixth argument | ||
* | ||
*/ | ||
public interface HexConsumer<K, V, S, T, R, Y> { | ||
|
||
/** | ||
* Performs the operation given the specified arguments. | ||
* @param k the first upper argument | ||
* @param v the second upper argument | ||
* @param s the third upper argument | ||
* @param t the fourth upper argument | ||
* @param r the fifth upper argument | ||
* @param y the sixth upper argument | ||
*/ | ||
void accept(K k, V v, S s, T t, R r, Y y); | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/net/zepalesque/zenith/util/lambda/consumer/QuadConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package net.zepalesque.zenith.util.lambda.consumer; | ||
|
||
/** | ||
* An operation that accepts four upper arguments and returns no result. | ||
* | ||
* @param <K> type of the first argument | ||
* @param <V> type of the second argument | ||
* @param <S> type of the third argument | ||
* @param <T> type of the fourth argument | ||
*/ | ||
public interface QuadConsumer<K, V, S, T> { | ||
|
||
/** | ||
* Performs the operation given the specified arguments. | ||
* @param k the first upper argument | ||
* @param v the second upper argument | ||
* @param s the third upper argument | ||
* @param t the fourth upper argument | ||
*/ | ||
void accept(K k, V v, S s, T t); | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/net/zepalesque/zenith/util/lambda/consumer/SeptConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package net.zepalesque.zenith.util.lambda.consumer; | ||
|
||
/** | ||
* An operation that accepts seven upper arguments and returns no result. | ||
* | ||
* @param <K> type of the first argument | ||
* @param <V> type of the second argument | ||
* @param <S> type of the third argument | ||
* @param <T> type of the fourth argument | ||
* @param <R> type of the fifth argument | ||
* @param <Q> type of the sixth argument | ||
* @param <L> type of the seventh argument | ||
*/ | ||
public interface SeptConsumer<K, V, S, T, R, Q, L> { | ||
|
||
/** | ||
* Performs the operation given the specified arguments. | ||
* @param k the first upper argument | ||
* @param v the second upper argument | ||
* @param s the third upper argument | ||
* @param t the fourth upper argument | ||
* @param r the fifth upper argument | ||
* @param q the sixth upper argument | ||
* @param l the seventh upper argument | ||
*/ | ||
void accept(K k, V v, S s, T t, R r, Q q, L l); | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/net/zepalesque/zenith/util/lambda/function/HexFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package net.zepalesque.zenith.util.lambda.function; | ||
|
||
/** | ||
* An operation that accepts six upper arguments and returns a result. | ||
* | ||
* @param <K> type of the first argument | ||
* @param <V> type of the second argument | ||
* @param <S> type of the third argument | ||
* @param <T> type of the fourth argument | ||
* @param <R> type of the fifth argument | ||
* @param <Y> type of the sixth argument | ||
* | ||
* @param <Z> type of the return value | ||
*/ | ||
public interface HexFunction<K, V, S, T, R, Y, Z> { | ||
|
||
/** | ||
* Performs the operation given the specified arguments. | ||
* @param k the first upper argument | ||
* @param v the second upper argument | ||
* @param s the third upper argument | ||
* @param t the fourth upper argument | ||
* @param r the fifth upper argument | ||
* @param y the sixth upper argument | ||
*/ | ||
Z apply(K k, V v, S s, T t, R r, Y y); | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/net/zepalesque/zenith/util/lambda/function/OctoFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package net.zepalesque.zenith.util.lambda.function; | ||
|
||
/** | ||
* An operation that accepts eight upper arguments and returns a result. | ||
* | ||
* @param <K> type of the first argument | ||
* @param <V> type of the second argument | ||
* @param <S> type of the third argument | ||
* @param <T> type of the fourth argument | ||
* @param <R> type of the fifth argument | ||
* @param <Q> type of the sixth argument | ||
* @param <L> type of the seventh argument | ||
* @param <X> type of the eighth argument | ||
* | ||
* @param <Z> type of the return value | ||
*/ | ||
public interface OctoFunction<K, V, S, T, R, Q, L, X, Z> { | ||
|
||
/** | ||
* Performs the operation given the specified arguments. | ||
* @param k the first upper argument | ||
* @param v the second upper argument | ||
* @param s the third upper argument | ||
* @param t the fourth upper argument | ||
* @param r the fifth upper argument | ||
* @param q the sixth upper argument | ||
* @param l the seventh upper argument | ||
* @param x the eighth upper argument | ||
*/ | ||
Z apply(K k, V v, S s, T t, R r, Q q, L l, X x); | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/net/zepalesque/zenith/util/lambda/function/QuadFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package net.zepalesque.zenith.util.lambda.function; | ||
|
||
/** | ||
* An operation that accepts four upper arguments and returns a result. | ||
* | ||
* @param <K> type of the first argument | ||
* @param <V> type of the second argument | ||
* @param <S> type of the third argument | ||
* @param <T> type of the fourth argument | ||
* @param <R> type of the result | ||
*/ | ||
public interface QuadFunction<K, V, S, T, R> { | ||
|
||
/** | ||
* Performs the operation given the specified arguments. | ||
* @param k the first upper argument | ||
* @param v the second upper argument | ||
* @param s the third upper argument | ||
* @param t the fourth upper argument | ||
*/ | ||
R apply(K k, V v, S s, T t); | ||
} |