mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-26 23:57:25 +01:00
add lambda call interfaces for single and multiple arguments
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package com.gpl.rpg.atcontentstudio.utils.lambda;
|
||||
|
||||
public interface CallWithReturn<T> {
|
||||
T call();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.gpl.rpg.atcontentstudio.utils.lambda;
|
||||
|
||||
public interface CallWithSingleArg<T> {
|
||||
void call(T arg);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.gpl.rpg.atcontentstudio.utils.lambda;
|
||||
|
||||
public interface CallWithThreeArgs<T1, T2, T3> {
|
||||
void call(T1 arg1, T2 arg2, T3 arg3);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.gpl.rpg.atcontentstudio.utils.lambda;
|
||||
|
||||
public interface CallWithTwoArgs<T1, T2> {
|
||||
void call(T1 arg1, T2 arg2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user