@FunctionalInterface public interface DoubleToIntFunction1 extends ToIntFunctionN, InputChainableInput<java.lang.Double>, UnboxedAll<Function1<java.lang.Double,java.lang.Integer>,ToIntFunction1<java.lang.Double>,DoubleFunction1<java.lang.Integer>>, Variant<java.util.function.DoubleToIntFunction>
double-valued argument and produces an int-valued result.
This is the one-arity specialization of ToIntFunctionN.
This is the double-consuming primitive specialization of ToIntFunction1.
This is the int-producing primitive specialization of DoubleFunction1.
This is a functional interface whose functional method is applyAsInt(double).
DoubleFunction1,
ToIntFunction1,
ToIntFunctionNToIntFunctionN.InstanceFunctionN.FunctionSizeException| Modifier and Type | Method and Description |
|---|---|
default <V> DoubleFunction1<V> |
andThen(Function1<? super java.lang.Integer,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default <V> DoubleFunction1<V> |
andThenUnchecked(Function1<? super java.lang.Integer,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default int |
applyAllAsIntUnchecked(java.lang.Object... args)
Applies this function to the given arguments.
|
int |
applyAsInt(double value)
Applies this function to the given argument.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function1<java.lang.Double,java.lang.Integer> |
box()
Returns the boxed version of this object with a boxed input and result.
|
default ToIntFunction1<java.lang.Double> |
boxInput()
Returns the boxed version of this object with a boxed input.
|
default DoubleFunction1<java.lang.Integer> |
boxResult()
Returns the boxed version of this object with a boxed result.
|
default <V> ToIntFunction1<V> |
compose(Function1<? super V,? extends java.lang.Double> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
default <V> ToIntFunction1<V> |
composeUnchecked(Function1<? super V,? extends java.lang.Double> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
static DoubleToIntFunction1 |
fromVariant(java.util.function.DoubleToIntFunction function)
Creates an instance of this object from its
DoubleToIntFunction variant. |
default java.util.function.DoubleToIntFunction |
toVariant()
Returns the variant of this object.
|
applyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckedint applyAsInt(double value)
value - the function argumentdefault int applyAllAsIntUnchecked(java.lang.Object... args)
ToIntFunctionNapplyAllAsIntUnchecked in interface ToIntFunctionNargs - the function argumentsdefault int arity()
FunctionN-1.static DoubleToIntFunction1 fromVariant(java.util.function.DoubleToIntFunction function)
DoubleToIntFunction variant.function - the variant of this objectDoubleToIntFunctiondefault java.util.function.DoubleToIntFunction toVariant()
Variantdefault Function1<java.lang.Double,java.lang.Integer> box()
Unboxeddefault ToIntFunction1<java.lang.Double> boxInput()
UnboxedInputboxInput in interface UnboxedInput<ToIntFunction1<java.lang.Double>>ToIntFunction1default DoubleFunction1<java.lang.Integer> boxResult()
UnboxedResultboxResult in interface UnboxedResult<DoubleFunction1<java.lang.Integer>>DoubleFunction1default <V> ToIntFunction1<V> compose(Function1<? super V,? extends java.lang.Double> 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.Double>compose in interface InputChainableInput<java.lang.Double>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 objectToIntFunction1default <V> ToIntFunction1<V> composeUnchecked(Function1<? super V,? extends java.lang.Double> 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.Double>composeUnchecked in interface InputChainableInput<java.lang.Double>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 objectToIntFunction1default <V> DoubleFunction1<V> andThen(Function1<? super java.lang.Integer,? 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.Integer>andThen in interface ResultChainable<java.lang.Integer>andThen in interface ResultChainableResult<java.lang.Integer>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 functionDoubleFunction1default <V> DoubleFunction1<V> andThenUnchecked(Function1<? super java.lang.Integer,? 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.Integer>andThenUnchecked in interface ResultChainable<java.lang.Integer>andThenUnchecked in interface ResultChainableResult<java.lang.Integer>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 functionDoubleFunction1