Module com.machinezoo.noexception
Interface ThrowingToLongFunction<T>
-
- Type Parameters:
-
T
- seeToLongFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingToLongFunction<T>
Variation ofToLongFunction
that allows throwing checked exceptions.ThrowingToLongFunction
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromToLongFunction(ThrowingToLongFunction)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
applyAsLong(T value)
Variation ofToLongFunction.applyAsLong(Object)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
applyAsLong
long applyAsLong(T value) throws Throwable
Variation ofToLongFunction.applyAsLong(Object)
that allows throwing checked exceptions.- Parameters:
-
value
- seeToLongFunction.applyAsLong(Object)
- Returns:
-
see
ToLongFunction.applyAsLong(Object)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromToLongFunction(ThrowingToLongFunction)
,ToLongFunction.applyAsLong(Object)
-
-