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