All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.machinezoo.noexception.throwing.ThrowingToIntBiFunction Maven / Gradle / Ivy

Go to download

Makes exception handling concise and beautiful, yet architecturally clean and flexible.

There is a newer version: 1.9.1
Show newest version
// Part of NoException: https://noexception.machinezoo.com
// Generated code. Edit generate.py instead.
package com.machinezoo.noexception.throwing;

import java.util.function.*;
import com.machinezoo.noexception.*;

/**
 * Variation of {@link ToIntBiFunction} that allows throwing checked exceptions.
 * {@code ThrowingToIntBiFunction} is usually implemented by a lambda
 * and passed to {@link CheckedExceptionHandler#fromToIntBiFunction(ThrowingToIntBiFunction)}.
 * See noexception tutorial.
 * 
 * @param 
 *            see {@link ToIntBiFunction}
 * @param 
 *            see {@link ToIntBiFunction}
 * @see CheckedExceptionHandler#fromToIntBiFunction(ThrowingToIntBiFunction)
 * @see ToIntBiFunction
 */
@FunctionalInterface public interface ThrowingToIntBiFunction {
	/**
	 * Variation of {@link ToIntBiFunction#applyAsInt(Object, Object)} that allows throwing checked exceptions.
	 * 
	 * @param t
	 *            see {@link ToIntBiFunction#applyAsInt(Object, Object)}
	 * @param u
	 *            see {@link ToIntBiFunction#applyAsInt(Object, Object)}
	 * @return see {@link ToIntBiFunction#applyAsInt(Object, Object)}
	 * @throws Exception
	 *             if unable to complete
	 * @see CheckedExceptionHandler#fromToIntBiFunction(ThrowingToIntBiFunction)
	 * @see ToIntBiFunction#applyAsInt(Object, Object)
	 */
	int applyAsInt(T t, U u) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy