FailableDoubleFunction¶
- @FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableDoubleFunction<R, E extends Throwable>[source]¶
A functional interface like
DoubleFunctionthat declares aThrowable.- Parameters:
<R> – Return type.
<E> – The kind of thrown exception or error.
- Since:
3.11
Fields and constants¶
NOP singleton |
- @SuppressWarnings({"rawtypes"}) public static final FailableDoubleFunction NOP[source]¶
NOP singleton
Methods¶
Applies this function. |
|
Gets the NOP singleton. |
- public abstract R apply(double input) throws E[source]¶
Applies this function.
- Parameters:
input – The input for the function
- Returns:
The result of the function
- Throws:
E – Thrown when the function fails.
- @SuppressWarnings({"unchecked"}) public static <R, E extends Throwable> FailableDoubleFunction<R, E> nop()[source]¶
Gets the NOP singleton.
- Type parameters:
<R> – Return type.
<E> – The kind of thrown exception or error.
- Returns:
The NOP singleton.