On this page

FailableToIntBiFunction

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

A functional interface like ToIntBiFunction that declares a Throwable.

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

NOP

NOP singleton

@SuppressWarnings({"rawtypes"}) public static final FailableToIntBiFunction NOP[source]

NOP singleton

Methods

applyAsInt(Object, Object)

Applies this function to the given arguments.

nop()

Gets the NOP singleton.

public abstract int applyAsInt(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.

@SuppressWarnings({"unchecked"}) public static <T, U, E extends Throwable> FailableToIntBiFunction<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.