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