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