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

public Interface FailableLongFunction<R, E extends Throwable>

Annotations
@FunctionalInterface
Type Parameters
<R>
Return type.
<E>
The kind of thrown exception or error.
Imports
java.util.function.LongFunction

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

Field Summary

Modifier and TypeField and Description
public static final FailableLongFunction<R, E extends Throwable>
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public R

Returns:

the result of the function
apply
(long
the input for the function
input
)

Applies this function.

public static <
Return type.
R
,
The kind of thrown exception or error.
E extends Throwable
>
FailableLongFunction<R, E>

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final FailableLongFunction<R, E extends Throwable> NOP

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

applyback to summary
public R apply(long input) throws E

Applies this function.

Parameters
input:long

the input for the function

Returns:R

the result of the function

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

Gets the NOP singleton.

Parameters
<R>
Return type.
<E>
The kind of thrown exception or error.
Returns:FailableLongFunction<R, E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked