public static <T> ToLongFunction<T> toLongFunction(CheckedToLongFunction<T> function) {
        return Unchecked.toLongFunction(function, Unchecked.RETHROW_ALL);
    }
public static < T > ToLongFunction < T > toLongFunction ( CheckedToLongFunction < T > function ) { return Unchecked . toLongFunction ( function , Unchecked . RETHROW_ALL ) ; }
Wrap a {@link CheckedToLongFunction} in a {@link ToLongFunction}.
<p>
Example:
<code><pre>
map.computeIfAbsent("key", Unchecked.toLongFunction(k -> {
if (k.length() > 10)
throw new Exception("Only short strings allowed");

return 42L;
}));
</pre></code>