- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
DoubleFunction
that allows for checked exceptions.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionapply
(double value) Applies this function to the given argument.static <R> DoubleFunction<R>
sneaky
(CheckedDoubleFunction<R> function) static <R> DoubleFunction<R>
unchecked
(CheckedDoubleFunction<R> function) static <R> DoubleFunction<R>
unchecked
(CheckedDoubleFunction<R> function, Consumer<Throwable> handler)
-
Method Details
-
apply
Applies this function to the given argument.- Parameters:
value
- the function argument- Returns:
- the function result
- Throws:
Throwable
-
sneaky
-
unchecked
-
unchecked
static <R> DoubleFunction<R> unchecked(CheckedDoubleFunction<R> function, Consumer<Throwable> handler)
-