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

public Interface CheckedFunction<T, R>

Known Direct Subinterfaces
org.jooq.lambda.fi.util.function.CheckedUnaryOperator
Annotations
@FunctionalInterface
Imports
java.util.function.Consumer, .Function, org.jooq.lambda.Sneaky, .Unchecked

A Function that allows for checked exceptions.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public R

Returns:

the function result
apply
(T
the function argument
t
)

Applies this function to the given argument.

public static <T, R> Function<T, R>
sneaky(CheckedFunction<T, R> function)

public static <T, R> Function<T, R>
unchecked(CheckedFunction<T, R> function)

public static <T, R> Function<T, R>
unchecked(CheckedFunction<T, R> function, Consumer<Throwable> handler)

Method Detail

applyback to summary
public R apply(T t) throws Throwable

Applies this function to the given argument.

Parameters
t:T

the function argument

Returns:R

the function result

sneakyback to summary
public static <T, R> Function<T, R> sneaky(CheckedFunction<T, R> function)
See Also
Sneaky#function(CheckedFunction)
uncheckedback to summary
public static <T, R> Function<T, R> unchecked(CheckedFunction<T, R> function)
See Also
Unchecked#function(CheckedFunction)
uncheckedback to summary
public static <T, R> Function<T, R> unchecked(CheckedFunction<T, R> function, Consumer<Throwable> handler)
See Also
Unchecked#function(CheckedFunction, Consumer)