![JAR search and dependency download from the Maven repository](/logo.png)
uk.kludje.fn.function.ULongFunction 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 ULongFunction extends java.util.function.LongFunction {
/**
* Invokes {@code R $apply(long arg0)}.
* Throws anything thrown by {@code R $apply(long arg0)}.
*/
default R apply(long arg0) {
try {
return $apply(arg0);
} catch (Throwable throwable) {
throw uk.kludje.Exceptions.throwChecked(throwable);
}
}
R $apply(long arg0) throws Throwable;
/**
* Convenience method as an alternative to casting.
*
* @param t the unchecked type
* @return t
*/
public static ULongFunction asULongFunction(ULongFunction t) {
return t;
}
}