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

public Interface CheckedToLongFunction<T>

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

A ToLongFunction that allows for checked exceptions.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the function result
applyAsLong
(T
the function argument
value
)

Applies this function to the given argument.

public static <T> ToLongFunction<T>
public static <T> ToLongFunction<T>
public static <T> ToLongFunction<T>

Method Detail

applyAsLongback to summary
public long applyAsLong(T value) throws Throwable

Applies this function to the given argument.

Parameters
value:T

the function argument

Returns:long

the function result

sneakyback to summary
public static <T> ToLongFunction<T> sneaky(CheckedToLongFunction<T> function)
See Also
Sneaky#toLongFunction(CheckedToLongFunction)
uncheckedback to summary
public static <T> ToLongFunction<T> unchecked(CheckedToLongFunction<T> function)
See Also
Unchecked#toLongFunction(CheckedToLongFunction)
uncheckedback to summary
public static <T> ToLongFunction<T> unchecked(CheckedToLongFunction<T> function, Consumer<Throwable> handler)
See Also
Unchecked#toLongFunction(CheckedToLongFunction, Consumer)