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