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 ofDoubleToIntFunction
that allows throwing checked exceptions.ThrowingDoubleToIntFunction
is 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 int
applyAsInt(double value)
Variation ofDoubleToIntFunction.applyAsInt(double)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsInt
int applyAsInt(double value) throws Throwable
Variation 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)
-
-