
com.machinezoo.noexception.throwing.ThrowingDoubleToIntFunction Maven / Gradle / Ivy
// 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 DoubleToIntFunction} that allows throwing checked exceptions.
* {@code ThrowingDoubleToIntFunction} is usually implemented by a lambda
* and passed to {@link CheckedExceptionHandler#fromDoubleToIntFunction(ThrowingDoubleToIntFunction)}.
* See noexception tutorial.
*
* @see CheckedExceptionHandler#fromDoubleToIntFunction(ThrowingDoubleToIntFunction)
* @see DoubleToIntFunction
*/
@FunctionalInterface
public interface ThrowingDoubleToIntFunction {
/**
* Variation of {@link DoubleToIntFunction#applyAsInt(double)} that allows throwing checked exceptions.
*
* @param value
* see {@link DoubleToIntFunction#applyAsInt(double)}
* @return see {@link DoubleToIntFunction#applyAsInt(double)}
* @throws Throwable
* if unable to complete
* @see CheckedExceptionHandler#fromDoubleToIntFunction(ThrowingDoubleToIntFunction)
* @see DoubleToIntFunction#applyAsInt(double)
*/
int applyAsInt(double value) throws Throwable;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy