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

public Interface CheckedToIntFunction<T>

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

A ToIntFunction that allows for checked exceptions.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the function result
applyAsInt
(T
the function argument
value
)

Applies this function to the given argument.

public static <T> ToIntFunction<T>
public static <T> ToIntFunction<T>
public static <T> ToIntFunction<T>

Method Detail

applyAsIntback to summary
public int applyAsInt(T value) throws Throwable

Applies this function to the given argument.

Parameters
value:T

the function argument

Returns:int

the function result

sneakyback to summary
public static <T> ToIntFunction<T> sneaky(CheckedToIntFunction<T> function)
See Also
Sneaky#toIntFunction(CheckedToIntFunction)
uncheckedback to summary
public static <T> ToIntFunction<T> unchecked(CheckedToIntFunction<T> function)
See Also
Unchecked#toIntFunction(CheckedToIntFunction)
uncheckedback to summary
public static <T> ToIntFunction<T> unchecked(CheckedToIntFunction<T> function, Consumer<Throwable> handler)
See Also
Unchecked#toIntFunction(CheckedToIntFunction, Consumer)