R - the type of the result of the function@FunctionalInterface public interface ShortFunction1<R> extends FunctionN<R>, InputChainableInput<java.lang.Short>, UnboxedInput<Function1<java.lang.Short,R>>
short-valued argument and produces a result.
This is the one-arity specialization of FunctionN.
This is the short-consuming primitive specialization of Function1.
This is a functional interface whose functional method is apply(short).
FunctionN.FunctionSizeException, FunctionN.Instance<R>| Modifier and Type | Method and Description |
|---|---|
default <V> ShortFunction1<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. |
default <V> ShortFunction1<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 |
apply(short value)
Applies this function to the given argument.
|
default R |
applyAllUnchecked(java.lang.Object... args)
Applies this function to the given arguments.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function1<java.lang.Short,R> |
boxInput()
Returns the boxed version of this object with a boxed input.
|
default <V> Function1<V,R> |
compose(Function1<? super V,? extends java.lang.Short> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
default <V> Function1<V,R> |
composeUnchecked(Function1<? super V,? extends java.lang.Short> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
checkSize, checkSize, sizedApplyAllUncheckedR apply(short value)
value - the function argumentdefault R applyAllUnchecked(java.lang.Object... args)
FunctionNapplyAllUnchecked in interface FunctionN<R>args - the function argumentsdefault int arity()
FunctionN-1.default Function1<java.lang.Short,R> boxInput()
UnboxedInputboxInput in interface UnboxedInput<Function1<java.lang.Short,R>>Function1default <V> Function1<V,R> compose(Function1<? super V,? extends java.lang.Short> before)
InputChainablebefore function to its
input, and then applies this chainable object to the result. If evaluation
of either throws an exception, it is relayed to the caller of the chained
object.compose in interface InputChainable<java.lang.Short>compose in interface InputChainableInput<java.lang.Short>V - the type of the input to the before function, and to
then chained objectbefore - the function to apply before this chainable object is appliedbefore function
and then applies this chainable objectFunction1default <V> Function1<V,R> composeUnchecked(Function1<? super V,? extends java.lang.Short> before)
InputChainablebefore function to its
input, and then applies this chainable object to the 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.composeUnchecked in interface InputChainable<java.lang.Short>composeUnchecked in interface InputChainableInput<java.lang.Short>V - the type of the input to the before function, and to
then chained objectbefore - the function to apply before this chainable object is appliedbefore function
and then applies this chainable objectFunction1default <V> ShortFunction1<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 functiondefault <V> ShortFunction1<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