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