rs.baselib.function.ExceptionalBiFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of baselib Show documentation
Show all versions of baselib Show documentation
General classes, interfaces and utilities
The newest version!
package rs.baselib.function;
/**
* Represents a function that accepts two arguments and produces a result
* and can throw exceptions.
* This is the two-arity specialization of {@link ExceptionalFunction}.
*
* This is a functional interface
* whose functional method is {@link #apply(Object, Object)}.
*
* @param the type of the first argument to the function
* @param the type of the second argument to the function
* @param the type of the result of the function
*
*/
@FunctionalInterface
public interface ExceptionalBiFunction {
/**
* Applies this function to the given arguments.
*
* @param t the first function argument
* @param u the second function argument
* @return the function result
*/
R apply(T t, U u) throws Exception;
}