Top Description Methods
org.jooq.lambda.fi.util.function

public Interface CheckedToDoubleFunction<T>

Annotations
@FunctionalInterface
Imports
java.util.function.Consumer, .ToDoubleFunction, org.jooq.lambda.Sneaky, .Unchecked

A ToDoubleFunction that allows for checked exceptions.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

the function result
applyAsDouble
(T
the function argument
value
)

Applies this function to the given argument.

public static <T> ToDoubleFunction<T>
public static <T> ToDoubleFunction<T>
public static <T> ToDoubleFunction<T>

Method Detail

applyAsDoubleback to summary
public double applyAsDouble(T value) throws Throwable

Applies this function to the given argument.

Parameters
value:T

the function argument

Returns:double

the function result

sneakyback to summary
public static <T> ToDoubleFunction<T> sneaky(CheckedToDoubleFunction<T> function)
See Also
Sneaky#toDoubleFunction(CheckedToDoubleFunction)
uncheckedback to summary
public static <T> ToDoubleFunction<T> unchecked(CheckedToDoubleFunction<T> function)
See Also
Unchecked#toDoubleFunction(CheckedToDoubleFunction)
uncheckedback to summary
public static <T> ToDoubleFunction<T> unchecked(CheckedToDoubleFunction<T> function, Consumer<Throwable> handler)
See Also
Unchecked#toDoubleFunction(CheckedToDoubleFunction, Consumer)