@FunctionalInterface public interface ThrowingLongToDoubleFunction
LongToDoubleFunction
that allows throwing checked exceptions. ThrowingLongToDoubleFunction
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromLongToDoubleFunction(ThrowingLongToDoubleFunction)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
double |
applyAsDouble(long value)
Variation of LongToDoubleFunction.applyAsDouble(long) that allows throwing checked exceptions.
|
double applyAsDouble(long value) throws Throwable
LongToDoubleFunction.applyAsDouble(long)
that allows throwing checked exceptions.
value
- see LongToDoubleFunction.applyAsDouble(long)
LongToDoubleFunction.applyAsDouble(long)
Throwable
- if unable to complete
CheckedExceptionHandler.fromLongToDoubleFunction(ThrowingLongToDoubleFunction)
, LongToDoubleFunction.applyAsDouble(long)
Copyright © 2017–2020 Robert Važan. All rights reserved.