public static class ToShortFunctionN.Instance extends java.lang.Object implements ToShortFunctionN
ToShortFunctionN which properly defines the
arity of that particular function.ToShortFunctionNToShortFunctionN.InstanceFunctionN.FunctionSizeException| Constructor and Description |
|---|
Instance(int arity,
ToShortFunction1<java.lang.Object[]> function)
Constructs an instance of the function.
|
| Modifier and Type | Method and Description |
|---|---|
<V> FunctionN.Instance<V> |
andThen(Function1<? super java.lang.Short,? 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 java.lang.Short,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
short |
applyAllAsShortUnchecked(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, waitapplyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckedpublic Instance(int arity,
ToShortFunction1<java.lang.Object[]> function)
arity - the number of arguments of the functionfunction - the function to be appliedpublic int arity()
FunctionN-1.public short applyAllAsShortUnchecked(java.lang.Object... args)
ToShortFunctionNapplyAllAsShortUnchecked in interface ToShortFunctionNargs - the function argumentspublic <V> FunctionN.Instance<V> andThen(Function1<? super java.lang.Short,? 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<java.lang.Short>andThen in interface ResultChainable<java.lang.Short>andThen in interface ResultChainableResult<java.lang.Short>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 java.lang.Short,? 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<java.lang.Short>andThenUnchecked in interface ResultChainable<java.lang.Short>andThenUnchecked in interface ResultChainableResult<java.lang.Short>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