Module com.machinezoo.noexception
Interface ThrowingDoubleFunction<R>
-
- Type Parameters:
-
R
- seeDoubleFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingDoubleFunction<R>
Variation ofDoubleFunction
that allows throwing checked exceptions.ThrowingDoubleFunction
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromDoubleFunction(ThrowingDoubleFunction)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
apply(double value)
Variation ofDoubleFunction.apply(double)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
apply
R apply(double value) throws Throwable
Variation ofDoubleFunction.apply(double)
that allows throwing checked exceptions.- Parameters:
-
value
- seeDoubleFunction.apply(double)
- Returns:
-
see
DoubleFunction.apply(double)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromDoubleFunction(ThrowingDoubleFunction)
,DoubleFunction.apply(double)
-
-