FailableLongBinaryOperator

@FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableLongBinaryOperator<E extends Throwable>[source]

A functional interface like LongBinaryOperator that declares a Throwable.

Parameters:

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

Since:

3.11

Methods

applyAsLong(long, long)

Applies this operator to the given operands.

public abstract long applyAsLong(long left, long right) throws E[source]

Applies this operator to the given operands.

Parameters:
  • left – The first operand

  • right – The second operand

Returns:

The operator result

Throws:

E – Thrown if the operation fails.