@FunctionalInterface public interface FloatToShortFunction1 extends ToShortFunctionN, InputChainableInput<java.lang.Float>, UnboxedAll<Function1<java.lang.Float,java.lang.Short>,ToShortFunction1<java.lang.Float>,FloatFunction1<java.lang.Short>>
float-valued argument and produces a short-valued result.
This is the one-arity specialization of ToShortFunctionN.
This is the float-consuming primitive specialization of ToShortFunction1.
This is the short-producing primitive specialization of FloatFunction1.
This is a functional interface whose functional method is applyAsShort(float).
FloatFunction1,
ToShortFunction1,
ToShortFunctionNToShortFunctionN.InstanceFunctionN.FunctionSizeException| Modifier and Type | Method and Description |
|---|---|
default <V> FloatFunction1<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. |
default <V> FloatFunction1<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. |
default short |
applyAllAsShortUnchecked(java.lang.Object... args)
Applies this function to the given arguments.
|
short |
applyAsShort(float value)
Applies this function to the given argument.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function1<java.lang.Float,java.lang.Short> |
box()
Returns the boxed version of this object with a boxed input and result.
|
default ToShortFunction1<java.lang.Float> |
boxInput()
Returns the boxed version of this object with a boxed input.
|
default FloatFunction1<java.lang.Short> |
boxResult()
Returns the boxed version of this object with a boxed result.
|
default <V> ToShortFunction1<V> |
compose(Function1<? super V,? extends java.lang.Float> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
default <V> ToShortFunction1<V> |
composeUnchecked(Function1<? super V,? extends java.lang.Float> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
applyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckedshort applyAsShort(float value)
value - the function argumentdefault short applyAllAsShortUnchecked(java.lang.Object... args)
ToShortFunctionNapplyAllAsShortUnchecked in interface ToShortFunctionNargs - the function argumentsdefault int arity()
FunctionN-1.default Function1<java.lang.Float,java.lang.Short> box()
Unboxeddefault ToShortFunction1<java.lang.Float> boxInput()
UnboxedInputboxInput in interface UnboxedInput<ToShortFunction1<java.lang.Float>>ToShortFunction1default FloatFunction1<java.lang.Short> boxResult()
UnboxedResultboxResult in interface UnboxedResult<FloatFunction1<java.lang.Short>>FloatFunction1default <V> ToShortFunction1<V> compose(Function1<? super V,? extends java.lang.Float> 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.Float>compose in interface InputChainableInput<java.lang.Float>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 objectToShortFunction1default <V> ToShortFunction1<V> composeUnchecked(Function1<? super V,? extends java.lang.Float> 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.Float>composeUnchecked in interface InputChainableInput<java.lang.Float>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 objectToShortFunction1default <V> FloatFunction1<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 functionFloatFunction1default <V> FloatFunction1<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 functionFloatFunction1