
uk.kludje.fn.function.ULongToDoubleFunction 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 ULongToDoubleFunction extends java.util.function.LongToDoubleFunction {
/**
* Invokes {@code double $applyAsDouble(long arg0)}.
* Throws anything thrown by {@code double $applyAsDouble(long arg0)}.
*/
default double applyAsDouble(long arg0) {
try {
return $applyAsDouble(arg0);
} catch (Throwable throwable) {
throw uk.kludje.Exceptions.throwChecked(throwable);
}
}
double $applyAsDouble(long arg0) throws Throwable;
/**
* Convenience method as an alternative to casting.
*
* @param t the unchecked type
* @return t
*/
public static ULongToDoubleFunction asULongToDoubleFunction(ULongToDoubleFunction t) {
return t;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy