FailableToLongBiFunction

@FunctionalInterface public interface org.apache.commons.lang3.function.FailableToLongBiFunction<T, U, E extends Throwable>[source]

A functional interface like ToLongBiFunction that declares a Throwable.

Type parameters:
  • <T> – The type of the first argument to the function

  • <U> – The type of the second argument to the function

  • <E> – The kind of thrown exception or error.

Since:

3.11

Fields and constants

static final FailableToLongBiFunction

NOP

NOP singleton

static final FailableToLongBiFunction NOP[source]

NOP singleton

Methods

long

applyAsLong(T t, U u)

Applies this function to the given arguments.

static <T, U, E extends Throwable> FailableToLongBiFunction<T, U, E>

nop()

Gets the NOP singleton.

long applyAsLong(T t, U u) throws E[source]

Applies this function to the given arguments.

Parameters:
  • t – The first function argument

  • u – The second function argument

Returns:

The function result

Throws:

E – Thrown when the function fails.

static <T, U, E extends Throwable> FailableToLongBiFunction<T, U, E> nop()[source]

Gets the NOP singleton.

Type parameters:
  • <T> – The type of the first argument to the function

  • <U> – The type of the second argument to the function

  • <E> – The kind of thrown exception or error.

Returns:

The NOP singleton.