T
- see ToLongFunction
@FunctionalInterface public interface ThrowingToLongFunction<T>
ToLongFunction
that allows throwing checked exceptions. ThrowingToLongFunction
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromToLongFunction(ThrowingToLongFunction)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
long |
applyAsLong(T value)
Variation of ToLongFunction.applyAsLong(Object) that allows throwing checked exceptions.
|
long applyAsLong(T value) throws Throwable
ToLongFunction.applyAsLong(Object)
that allows throwing checked exceptions.
value
- see ToLongFunction.applyAsLong(Object)
ToLongFunction.applyAsLong(Object)
Throwable
- if unable to complete
CheckedExceptionHandler.fromToLongFunction(ThrowingToLongFunction)
, ToLongFunction.applyAsLong(Object)
Copyright © 2017–2020 Robert Važan. All rights reserved.