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