R - the type of the result of the functionpublic static class FunctionN.Instance<R> extends java.lang.Object implements FunctionN<R>
FunctionN which properly defines the
arity of that particular function.FunctionNFunctionN.FunctionSizeException, FunctionN.Instance<R>| Constructor and Description |
|---|
Instance(int arity,
Function1<java.lang.Object[],R> function)
Constructs an instance of the function.
|
| Modifier and Type | Method and Description |
|---|---|
<V> FunctionN.Instance<V> |
andThen(Function1<? super R,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
<V> FunctionN.Instance<V> |
andThenUnchecked(Function1<? super R,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
R |
applyAllUnchecked(java.lang.Object... args)
Applies this function to the given arguments.
|
int |
arity()
Returns the number of arguments of the function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSize, checkSize, sizedApplyAllUncheckedpublic int arity()
FunctionN-1.public R applyAllUnchecked(java.lang.Object... args)
FunctionNapplyAllUnchecked in interface FunctionN<R>args - the function argumentspublic <V> FunctionN.Instance<V> andThen(Function1<? super R,? extends V> after)
ResultChainableafter function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.andThen in interface FunctionN<R>andThen in interface ResultChainable<R>andThen in interface ResultChainableResult<R>V - the type of the output of the after function, and of
the chained objectafter - the function to apply after this chainable object is appliedafter functionpublic <V> FunctionN.Instance<V> andThenUnchecked(Function1<? super R,? extends V> after)
ResultChainableafter function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.
This makes no assumptions on the arguments of this method.andThenUnchecked in interface FunctionN<R>andThenUnchecked in interface ResultChainable<R>andThenUnchecked in interface ResultChainableResult<R>V - the type of the output of the after function, and of
the chained objectafter - the function to apply after this chainable object is appliedafter function