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