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

public Interface FailableDoubleToLongFunction<E extends Throwable>

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

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

Field Summary

Modifier and TypeField and Description
public static final FailableDoubleToLongFunction<E extends Throwable>
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the function result
applyAsLong
(double
the function argument
value
)

Applies this function to the given argument.

public static <
The kind of thrown exception or error.
E extends Throwable
>
FailableDoubleToLongFunction<E>

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final FailableDoubleToLongFunction<E extends Throwable> NOP

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

applyAsLongback to summary
public int applyAsLong(double value) throws E

Applies this function to the given argument.

Parameters
value:double

the function argument

Returns:int

the function result

Exceptions
E:
if the operation fails
nopback to summary
public static <E extends Throwable> FailableDoubleToLongFunction<E> nop()

Gets the NOP singleton.

Parameters
<E>
The kind of thrown exception or error.
Returns:FailableDoubleToLongFunction<E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked