@FunctionalInterface public interface ToDoubleFunction0 extends ToDoubleFunctionN, UnboxedResult<Function0<java.lang.Double>>, Variant<java.util.function.DoubleSupplier>
double-valued result.
This is the zero-arity specialization of ToDoubleFunctionN.
This is the double-producing primitive specialization of Function0.
This is a functional interface whose functional method is applyAsDouble().
Function0,
ToDoubleFunctionNToDoubleFunctionN.InstanceFunctionN.FunctionSizeException| Modifier and Type | Method and Description |
|---|---|
default <V> Function0<V> |
andThen(Function1<? super java.lang.Double,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default <V> Function0<V> |
andThenUnchecked(Function1<? super java.lang.Double,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default double |
applyAllAsDoubleUnchecked(java.lang.Object... args)
Applies this function to the given arguments.
|
double |
applyAsDouble()
Applies this function.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function0<java.lang.Double> |
boxResult()
Returns the boxed version of this object with a boxed result.
|
static ToDoubleFunction0 |
fromVariant(java.util.function.DoubleSupplier supplier)
Creates an instance of this object from its
DoubleSupplier variant. |
default java.util.function.DoubleSupplier |
toVariant()
Returns the variant of this object.
|
applyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckeddouble applyAsDouble()
default double applyAllAsDoubleUnchecked(java.lang.Object... args)
ToDoubleFunctionNapplyAllAsDoubleUnchecked in interface ToDoubleFunctionNargs - the function argumentsdefault int arity()
FunctionN-1.static ToDoubleFunction0 fromVariant(java.util.function.DoubleSupplier supplier)
DoubleSupplier variant.supplier - the variant of this objectDoubleSupplierdefault java.util.function.DoubleSupplier toVariant()
Variantdefault Function0<java.lang.Double> boxResult()
UnboxedResultboxResult in interface UnboxedResult<Function0<java.lang.Double>>Function0default <V> Function0<V> andThen(Function1<? super java.lang.Double,? 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.Double>andThen in interface ResultChainable<java.lang.Double>andThen in interface ResultChainableResult<java.lang.Double>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 functionFunction0default <V> Function0<V> andThenUnchecked(Function1<? super java.lang.Double,? 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.Double>andThenUnchecked in interface ResultChainable<java.lang.Double>andThenUnchecked in interface ResultChainableResult<java.lang.Double>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 functionFunction0