
com.machinezoo.noexception.throwing.ThrowingToIntBiFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of noexception Show documentation
Show all versions of noexception Show documentation
Makes exception handling concise and beautiful, yet architecturally clean and flexible.
// 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