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 ofIntToDoubleFunctionthat allows throwing checked exceptions.ThrowingIntToDoubleFunctionis 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 doubleapplyAsDouble(int value)Variation ofIntToDoubleFunction.applyAsDouble(int)that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsDouble
double applyAsDouble(int value) throws ThrowableVariation 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)
-
-