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 ofDoubleToLongFunctionthat allows throwing checked exceptions.ThrowingDoubleToLongFunctionis 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 longapplyAsLong(double value)Variation ofDoubleToLongFunction.applyAsLong(double)that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsLong
long applyAsLong(double value) throws ThrowableVariation 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)
-
-