uk.kludje.fn.function.UToDoubleBiFunction Maven / Gradle / Ivy
/*Generated file; do not edit*/
package uk.kludje.fn.function;
/**
* A functional interface for handling checked exceptions.
* See parent type for intent.
*/
@java.lang.FunctionalInterface
@javax.annotation.Generated("uk.kludje.annotation.processor.UncheckedFunctionalInterfaceProcessor")
public interface UToDoubleBiFunction extends java.util.function.ToDoubleBiFunction {
/**
* Invokes {@code double $applyAsDouble(T arg0, U arg1)}.
* Throws anything thrown by {@code double $applyAsDouble(T arg0, U arg1)}.
*/
default double applyAsDouble(T arg0, U arg1) {
try {
return $applyAsDouble(arg0,arg1);
} catch (Throwable throwable) {
throw uk.kludje.Exceptions.throwChecked(throwable);
}
}
double $applyAsDouble(T arg0, U arg1) throws Throwable;
/**
* Convenience method as an alternative to casting.
*
* @param t the unchecked type
* @return t
*/
public static UToDoubleBiFunction asUToDoubleBiFunction(UToDoubleBiFunction t) {
return t;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy