Top Description Fields Methods
org.apache.commons.lang3.function

public Interface FailableToIntFunction<T, E extends Throwable>

Annotations
@FunctionalInterface
Type Parameters
<T>
the type of the argument to the function
<E>
The kind of thrown exception or error.
Imports
java.util.function.ToIntFunction

A functional interface like ToIntFunction that declares a Throwable.
Since
3.11

Field Summary

Modifier and TypeField and Description
public static final FailableToIntFunction<T, E extends Throwable>
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the function result
applyAsInt
(T
the first function argument
t
)

Applies this function to the given arguments.

public static <
the type of the argument to the function
T
,
The kind of thrown exception or error.
E extends Throwable
>
FailableToIntFunction<T, E>

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final FailableToIntFunction<T, E extends Throwable> NOP

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

applyAsIntback to summary
public int applyAsInt(T t) throws E

Applies this function to the given arguments.

Parameters
t:T

the first function argument

Returns:int

the function result

Exceptions
E:
Thrown when the function fails.
nopback to summary
public static <T, E extends Throwable> FailableToIntFunction<T, E> nop()

Gets the NOP singleton.

Parameters
<T>
the type of the argument to the function
<E>
The kind of thrown exception or error.
Returns:FailableToIntFunction<T, E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked