Package com.diffplug.jscriptbox
Class ArityN
- java.lang.Object
-
- com.diffplug.jscriptbox.ArityN
-
public final class ArityN extends java.lang.Object
We'd like to pass lambdas toJScriptBox
through a fluent API, which means that we need to describe the function signature in the method name.In order to make this concise, here are functional interfaces with consistent naming conventions, for arity 0 to 4, with and without return values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ArityN.Func0<R>
static interface
ArityN.Func1<A,R>
static interface
ArityN.Func2<A,B,R>
static interface
ArityN.Func3<A,B,C,R>
static interface
ArityN.Func4<A,B,C,D,R>
static interface
ArityN.Void0
static interface
ArityN.Void1<A>
static interface
ArityN.Void2<A,B>
static interface
ArityN.Void3<A,B,C>
static interface
ArityN.Void4<A,B,C,D>
-