Module com.machinezoo.noexception
Interface ThrowingDoubleToIntFunction
-
- 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 ThrowingDoubleToIntFunction
Variation ofDoubleToIntFunctionthat allows throwing checked exceptions.ThrowingDoubleToIntFunctionis usually implemented by a lambda and passed toCheckedExceptionHandler.fromDoubleToIntFunction(ThrowingDoubleToIntFunction). See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intapplyAsInt(double value)Variation ofDoubleToIntFunction.applyAsInt(double)that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsInt
int applyAsInt(double value) throws ThrowableVariation ofDoubleToIntFunction.applyAsInt(double)that allows throwing checked exceptions.- Parameters:
-
value- seeDoubleToIntFunction.applyAsInt(double) - Returns:
-
see
DoubleToIntFunction.applyAsInt(double) - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromDoubleToIntFunction(ThrowingDoubleToIntFunction),DoubleToIntFunction.applyAsInt(double)
-
-