@FunctionalInterface public interface CheckedToLongFunction<T>
ToLongFunction that allows for checked exceptions.| Modifier and Type | Method and Description |
|---|---|
long |
applyAsLong(T value)
Applies this function to the given argument.
|
static <T> java.util.function.ToLongFunction<T> |
unchecked(CheckedToLongFunction<T> function) |
static <T> java.util.function.ToLongFunction<T> |
unchecked(CheckedToLongFunction<T> function,
java.util.function.Consumer<Throwable> handler) |
long applyAsLong(T value) throws Throwable
value - the function argumentThrowablestatic <T> java.util.function.ToLongFunction<T> unchecked(CheckedToLongFunction<T> function)
Unchecked#toLongFunction(CheckedToLongFunction)}static <T> java.util.function.ToLongFunction<T> unchecked(CheckedToLongFunction<T> function, java.util.function.Consumer<Throwable> handler)
Unchecked#toLongFunction(CheckedToLongFunction, Consumer)}Copyright © 2016. All Rights Reserved.