Module com.machinezoo.noexception
Interface ThrowingToDoubleFunction<T>
-
- Type Parameters:
-
T
- seeToDoubleFunction
- 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 ThrowingToDoubleFunction<T>
Variation ofToDoubleFunction
that allows throwing checked exceptions.ThrowingToDoubleFunction
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromToDoubleFunction(ThrowingToDoubleFunction)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
applyAsDouble(T value)
Variation ofToDoubleFunction.applyAsDouble(Object)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsDouble
double applyAsDouble(T value) throws Throwable
Variation ofToDoubleFunction.applyAsDouble(Object)
that allows throwing checked exceptions.- Parameters:
-
value
- seeToDoubleFunction.applyAsDouble(Object)
- Returns:
-
see
ToDoubleFunction.applyAsDouble(Object)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromToDoubleFunction(ThrowingToDoubleFunction)
,ToDoubleFunction.applyAsDouble(Object)
-
-